libstdc++
|
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.
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 3325 of file random.h.
References operator()(), and param().
Referenced by operator()().
double std::bernoulli_distribution::p | ( | ) | const [inline] |
param_type std::bernoulli_distribution::param | ( | ) | const [inline] |
Returns the parameter set of the distribution.
Definition at line 3295 of file random.h.
Referenced by operator()(), std::operator==(), and std::operator>>().
void std::bernoulli_distribution::param | ( | const param_type & | __param | ) | [inline] |
void std::bernoulli_distribution::reset | ( | ) | [inline] |