Thrill
0.1
|
Definition at line 27 of file bernoulli_sample.hpp.
#include <bernoulli_sample.hpp>
Public Member Functions | |
BernoulliSampleNode (double p) | |
template<typename Emitter > | |
void | operator() (const ValueType &item, Emitter &&emit) |
bool | use_skip () const |
Private Types | |
using | SkipDistValueType = int |
Private Attributes | |
const double | p_ |
std::default_random_engine | rng_ { std::random_device { } () } |
std::bernoulli_distribution | simple_dist_ |
std::geometric_distribution< SkipDistValueType > | skip_dist_ |
SkipDistValueType | skip_remaining_ = -1 |
const bool | use_skip_ |
Static Private Attributes | |
static const bool | debug = false |
|
private |
Definition at line 31 of file bernoulli_sample.hpp.
|
inlineexplicit |
Definition at line 34 of file bernoulli_sample.hpp.
References LOG, BernoulliSampleNode< ValueType >::rng_, BernoulliSampleNode< ValueType >::simple_dist_, BernoulliSampleNode< ValueType >::skip_dist_, BernoulliSampleNode< ValueType >::skip_remaining_, and BernoulliSampleNode< ValueType >::use_skip_.
|
inline |
Definition at line 50 of file bernoulli_sample.hpp.
References LOG, BernoulliSampleNode< ValueType >::rng_, BernoulliSampleNode< ValueType >::simple_dist_, BernoulliSampleNode< ValueType >::skip_dist_, BernoulliSampleNode< ValueType >::skip_remaining_, and BernoulliSampleNode< ValueType >::use_skip_.
|
inline |
Definition at line 72 of file bernoulli_sample.hpp.
References BernoulliSampleNode< ValueType >::use_skip_.
|
staticprivate |
Definition at line 29 of file bernoulli_sample.hpp.
|
private |
Definition at line 78 of file bernoulli_sample.hpp.
|
private |
Definition at line 83 of file bernoulli_sample.hpp.
Referenced by BernoulliSampleNode< ValueType >::BernoulliSampleNode(), and BernoulliSampleNode< ValueType >::operator()().
|
private |
Definition at line 84 of file bernoulli_sample.hpp.
Referenced by BernoulliSampleNode< ValueType >::BernoulliSampleNode(), and BernoulliSampleNode< ValueType >::operator()().
|
private |
Definition at line 85 of file bernoulli_sample.hpp.
Referenced by BernoulliSampleNode< ValueType >::BernoulliSampleNode(), and BernoulliSampleNode< ValueType >::operator()().
|
private |
Definition at line 86 of file bernoulli_sample.hpp.
Referenced by BernoulliSampleNode< ValueType >::BernoulliSampleNode(), and BernoulliSampleNode< ValueType >::operator()().
|
private |
Definition at line 81 of file bernoulli_sample.hpp.
Referenced by BernoulliSampleNode< ValueType >::BernoulliSampleNode(), BernoulliSampleNode< ValueType >::operator()(), and BernoulliSampleNode< ValueType >::use_skip().