pm4py.objects.random_variables.gamma package#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

Submodules#

pm4py.objects.random_variables.gamma.random_variable module#

This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de).

PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

PM4Py is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with PM4Py. If not, see <https://www.gnu.org/licenses/>.

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#

distribution_type

String representing the distribution type

get_distribution_parameters()[source]#

Get a string representing distribution parameters

Returns#

distribution_parameters

String representing distribution parameters

calculate_loglikelihood(values)[source]#

Calculate log likelihood

Parameters#

values

Empirical values to work on

Returns#

likelihood

Log likelihood that the values follows the distribution

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

Value obtained following the distribution