File boost_random_number_generator.hpp

template<typename RNGType, typename NT>
struct BoostRandomNumberGenerator<RNGType, NT>

Public Functions

inline BoostRandomNumberGenerator(int d)
inline NT sample_urdist()
inline NT sample_uidist()
inline NT sample_ndist()
inline NT sample_trunc_expdist()
inline void set_seed(unsigned rng_seed)

Private Members

RNGType _rng
boost::random::uniform_real_distribution<NT> _urdist
boost::random::uniform_int_distribution _uidist
boost::random::normal_distribution<NT> _ndist
boost::random::exponential_distribution<NT> _expdist
template<typename RNGType, typename NT, int Seed>
struct BoostRandomNumberGenerator<RNGType, NT, Seed>

Public Functions

inline BoostRandomNumberGenerator(int d = 1)
inline NT sample_urdist()
inline NT sample_uidist()
inline NT sample_ndist()
inline NT sample_trunc_expdist()
inline void set_seed(unsigned rng_seed)

Private Members

RNGType _rng
boost::random::uniform_real_distribution<NT> _urdist
boost::random::uniform_int_distribution _uidist
boost::random::normal_distribution<NT> _ndist
boost::random::exponential_distribution<NT> _expdist
namespace detail

Functions

template<typename RNG, typename NT>
inline NT sample_trunc_expdist(RNG &rng, boost::random::exponential_distribution<NT> &expdist)