Class BernoulliDist¶
Defined in File bernoulli_dist.h
Class Documentation¶
-
class BernoulliDist¶
class BernoulliDist. Wrapper to std::bernoulli_distribution
Public Types
-
typedef bool result_type¶
\breif The return type every time we call pdf, sample
Public Functions
-
result_type sample() const¶
Sample from the distribution.
-
result_type sample(uint_t seed) const¶
Sample from the distribution.
-
std::vector<result_type> sample_many(uint_t size) const¶
sample from the distribution
-
std::vector<result_type> sample_many(uint_t size, uint_t seed) const¶
sample from the distribution
-
inline void reset()¶
Reset the underlying distribution.
-
typedef bool result_type¶