vSMC
vSMC: Scalable Monte Carlo
Static Public Member Functions | List of all members
vsmc::UniformBits< UIntType > Class Template Reference

Generate uniform bits of given type. More...

#include <vsmc/rng/uniform_bits_distribution.hpp>

Static Public Member Functions

template<typename RNGType >
static UIntType eval (RNGType &rng)
 

Detailed Description

template<typename UIntType>
class vsmc::UniformBits< UIntType >

Generate uniform bits of given type.

For a given unsigned integer type UIntType with \(W\) bits, the output will be unsigned integers on the set \(\{0,\dots,2^W - 1\}\) regardless of the range of the input RNGType

Definition at line 48 of file uniform_bits_distribution.hpp.

Member Function Documentation

template<typename UIntType >
template<typename RNGType >
static UIntType vsmc::UniformBits< UIntType >::eval ( RNGType &  rng)
inlinestatic

Definition at line 56 of file uniform_bits_distribution.hpp.