A Bernoulli random number distribution. More...
A Bernoulli random number distribution.
Generates a sequence of true and false values with likelihood
that true will come up and
that false will appear.
Definition at line 3240 of file random.h.
| typedef bool std::bernoulli_distribution::result_type |
| std::bernoulli_distribution::bernoulli_distribution | ( | double | __p = 0.5 |
) | [inline, explicit] |
| result_type std::bernoulli_distribution::max | ( | ) | const [inline] |
| result_type std::bernoulli_distribution::min | ( | ) | const [inline] |
| result_type std::bernoulli_distribution::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) | [inline] |
Generating functions.
Definition at line 3335 of file random.h.
References operator()(), and param().
Referenced by operator()().
| double std::bernoulli_distribution::p | ( | ) | const [inline] |
| void std::bernoulli_distribution::param | ( | const param_type & | __param | ) | [inline] |
| param_type std::bernoulli_distribution::param | ( | ) | const [inline] |
Returns the parameter set of the distribution.
Definition at line 3305 of file random.h.
Referenced by operator()(), std::operator==(), and std::operator>>().
| void std::bernoulli_distribution::reset | ( | ) | [inline] |
1.7.1