1#ifndef BITSIM_MATHS_STATISTICS_DISTRIBUTIONS_BERNOULLI_DIST_H
2#define BITSIM_MATHS_STATISTICS_DISTRIBUTIONS_BERNOULLI_DIST_H
72 mutable std::bernoulli_distribution dist_;
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
result_type sample() const
Sample from the distribution.
Definition bernoulli_dist.cpp:10
std::vector< result_type > sample_many(uint_t size) const
sample from the distribution
Definition bernoulli_dist.cpp:27
void reset()
Reset the underlying distribution.
Definition bernoulli_dist.h:63
real_t variance() const
The STD of the distribution.
Definition bernoulli_dist.h:58
real_t mean() const
The mean value of the distribution.
Definition bernoulli_dist.h:53
bool result_type
The return type every time we call pdf, sample.
Definition bernoulli_dist.h:23
BernoulliDist(real_t p=0.5)
Constructor.
Definition bernoulli_dist.cpp:8
Definition bernoulli_dist.cpp:6
Definition dc_motor_backend_base.h:9
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
double real_t
real_t
Definition bitsim_types.h:20