1#ifndef BERNOULLI_DIST_H
2#define BERNOULLI_DIST_H
12namespace utils::maths::stats
73 mutable std::bernoulli_distribution dist_;
class BernoulliDist. Wrapper to std::bernoulli_distribution
Definition bernoulli_dist.h:19
result_type sample() const
Sample from the distribution.
Definition bernoulli_dist.cpp:12
real_t mean() const
The mean value of the distribution.
Definition bernoulli_dist.h:54
void reset()
Reset the underlying distribution.
Definition bernoulli_dist.h:64
bool result_type
Definition bernoulli_dist.h:24
std::vector< result_type > sample_many(uint_t size) const
sample from the distribution
Definition bernoulli_dist.cpp:29
real_t variance() const
The STD of the distribution.
Definition bernoulli_dist.h:59
Definition bitrl_consts.h:14
double real_t
real_t
Definition bitrl_types.h:23
std::size_t uint_t
uint_t
Definition bitrl_types.h:43