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