NegativeBinomial
Returns an integer corresponding to the number of failures before exactly k (with default value 1) successes given that the probability of success is p (with default value 0.5).
The probability mass function is given by,
Constructors
NegativeBinomial(const NegativeBinomial distribution) -> NegativeBinomial
Copy constructor for NegativeBinomial distribution.
Parameters
- distribution: NegativeBinomial distribution to be copied
Symbols
| Name | Description |
|---|---|
= | Copy assignment operator for NegativeBinomial distribution. |
Members
| Name | Description |
|---|---|
| k | Number of failures. |
| 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. |