Skip to main content

Distribution

Base class: Object

Parent distribution for all other distributions. Guarantees that all distributions have a method sample, parameters and parameter

Derived Types​

Factories​

random_distribution(const string distribution_name) -> Distribution​

Constructs a probability distribution of the given name with the given parameters.

Parameters​

  • distribution_name: Name of probability distribution

Returns​

A distribution.

random_distribution(const string distribution_name, const Map parameters) -> Distribution​

Constructs a probability distribution of the given name with the given parameters.

Parameters​

  • distribution_name: Name of probability distribution
  • parameters: A dictionary of parameters. The names of the parameters depend on the distribution.

Returns​

A distribution.

Members​

NameDescription
parameterReturns the named parameter
parametersReturns a Map containing the parameters of the distribution.