Geometric
Returns the average number of failures before success when the chance of success is p (with default value 0.5).
The probability mass function is given by,
Constructors
Geometric(const Geometric distribution) -> Geometric
Copy constructor for Geometric distribution.
Parameters
- distribution: Geometric distribution to be copied
Symbols
| Name | Description |
|---|---|
= | Copy assignment operator for Geometric distribution. |
Members
| Name | Description |
|---|---|
| max | Returns the maximum possible value from the distribution |
| min | Returns the minimum possible value from the distribution |
| p | Probability of success. |
| sample | Sample from distribution. |