Discrete
Produces random integers with probabilities determined by the given weights (with default value [1.0]).
The probability density is given by,
where represents the elements of the weights parameter.
Constructors
Discrete(const Discrete distribution) -> Discrete
Copy constructor for Discrete distribution.
Parameters
- distribution: Discrete distribution to be copied
Symbols
| Name | Description |
|---|---|
= | Copy assignment operator for Discrete distribution. |
Members
| Name | Description |
|---|---|
| max | Returns the maximum possible value from the distribution |
| min | Returns the minimum possible value from the distribution |
| probabilities | Probabilities of each outcome. |
| sample | Sample from distribution. |