Skip to main content

random_distribution

Overloads

NameDescription
random_distribution(const string distribution_name) -> DistributionConstructs a probability distribution of the given name with the given parameters.
random_distribution(const string distribution_name, const Map parameters) -> DistributionConstructs a probability distribution of the given name with the given parameters.

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.