mlpy.mdp.distrib.ProbaCalcMethodFactory.create

static ProbaCalcMethodFactory.create(_type, *args, **kwargs)[source]

Create a probability calculation method of the given type.

Parameters:

_type : str

The probability calculation method type. The method type should be equal to the class name of the method.

args : tuple

Positional arguments passed to the class of the given type for initialization.

kwargs : dict

Non-positional arguments passed to the class of the given type for initialization.

Returns:

IProbaCalcMethod :

A probability calculation method instance of the given type.