Bernoulli
Returns true or false with the probability of true given by the parameter p (with default value 0.5).
The probability mass function is given by,
Constructors
Bernoulli(const Bernoulli distribution) -> Bernoulli
Copy constructor for Bernoulli distribution.
Parameters
- distribution: Bernoulli distribution to be copied
Symbols
| Name | Description |
|---|---|
= | Copy assignment operator for Bernoulli 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. |