pm4py.objects.random_variables.gamma.random_variable module#

class pm4py.objects.random_variables.gamma.random_variable.Gamma(a=1, loc=0, scale=1)[source]#

Bases: BasicStructureRandomVariable

Describes a normal variable

read_from_string(distribution_parameters)[source]#

Initialize distribution parameters from string

Parameters:

distribution_parameters – Current distribution parameters as exported on the Petri net

get_distribution_type()[source]#

Get current distribution type

Returns:

String representing the distribution type

Return type:

distribution_type

get_distribution_parameters()[source]#

Get a string representing distribution parameters

Returns:

String representing distribution parameters

Return type:

distribution_parameters

calculate_loglikelihood(values)[source]#

Calculate log likelihood

Parameters:

values – Empirical values to work on

Returns:

Log likelihood that the values follows the distribution

Return type:

likelihood

calculate_parameters(values)[source]#

Calculate parameters of the current distribution

Parameters:

values – Empirical values to work on

get_value()[source]#

Get a random value following the distribution

Returns:

Value obtained following the distribution

Return type:

value