class BernoulliDist. Wrapper to std::bernoulli_distribution
More...
#include <bernoulli_dist.h>
|
| using | result_type = bool |
| | The return type every time we call pdf, sample.
|
class BernoulliDist. Wrapper to std::bernoulli_distribution
◆ result_type
The return type every time we call pdf, sample.
◆ BernoulliDist()
| bitsim::maths::stats::BernoulliDist::BernoulliDist |
( |
real_t | p = 0.5 | ) |
|
|
explicit |
◆ mean()
| real_t bitsim::maths::stats::BernoulliDist::mean |
( |
| ) |
const |
|
inline |
The mean value of the distribution.
◆ reset() [1/2]
| void bitsim::maths::stats::BernoulliDist::reset |
( |
| ) |
|
|
inline |
Reset the underlying distribution.
◆ reset() [2/2]
| void bitsim::maths::stats::BernoulliDist::reset |
( |
real_t | p | ) |
|
Reset the distribution with a new p.
◆ sample() [1/2]
Sample from the distribution.
◆ sample() [2/2]
Sample from the distribution.
◆ sample_many() [1/2]
sample from the distribution
◆ sample_many() [2/2]
sample from the distribution
◆ variance()
| real_t bitsim::maths::stats::BernoulliDist::variance |
( |
| ) |
const |
|
inline |
The STD of the distribution.
The documentation for this class was generated from the following files: