Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
BernoulliSampleNode< ValueType > Class Template Reference

Detailed Description

template<typename ValueType>
class thrill::api::BernoulliSampleNode< ValueType >

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
 

Member Typedef Documentation

using SkipDistValueType = int
private

Definition at line 31 of file bernoulli_sample.hpp.

Constructor & Destructor Documentation

Member Function Documentation

bool use_skip ( ) const
inline

Definition at line 72 of file bernoulli_sample.hpp.

References BernoulliSampleNode< ValueType >::use_skip_.

Member Data Documentation

const bool debug = false
staticprivate

Definition at line 29 of file bernoulli_sample.hpp.

const double p_
private

Definition at line 78 of file bernoulli_sample.hpp.

std::default_random_engine rng_ { std::random_device { } () }
private
std::bernoulli_distribution simple_dist_
private
std::geometric_distribution<SkipDistValueType> skip_dist_
private

The documentation for this class was generated from the following file: