vSMC
v3.0.0
Scalable Monte Carlo
|
Uniform bits distribution. More...
#include <vsmc/rng/internal/common.hpp>
Classes | |
class | param_type |
Public Types | |
using | distribution_type = UniformBitsDistribution< UIntType > |
using | result_type = UIntType |
Public Member Functions | |
UniformBitsDistribution ()=default | |
UniformBitsDistribution (const param_type &) | |
result_type | max () const |
result_type | min () const |
template<typename RNGType > | |
void | operator() (RNGType &rng, std::size_t n, result_type *r) |
template<typename RNGType > | |
void | operator() (RNGType &rng, std::size_t n, result_type *r, const param_type ¶m) |
template<typename RNGType > | |
result_type | operator() (RNGType &rng, const param_type ¶m) |
template<typename RNGType > | |
result_type | operator() (RNGType &rng) |
void | param (const param_type ¶m) |
const param_type & | param () const |
void | pram (param_type &¶m) |
void | reset () |
Friends | |
bool | operator!= (const distribution_type &dist1, const distribution_type &dist2) |
template<typename CharT , typename Traits > | |
std::basic_ostream< CharT, Traits > & | operator<< (std::basic_ostream< CharT, Traits > &os, const distribution_type &dist) |
bool | operator== (const distribution_type &dist1, const distribution_type &dist2) |
template<typename CharT , typename Traits > | |
std::basic_istream< CharT, Traits > & | operator>> (std::basic_istream< CharT, Traits > &is, distribution_type &dist) |
Uniform bits distribution.
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 1122 of file rng/internal/common.hpp.
using vsmc::UniformBitsDistribution< UIntType >::distribution_type = UniformBitsDistribution< UIntType > |
Definition at line 51 of file uniform_bits_distribution.hpp.
using vsmc::UniformBitsDistribution< UIntType >::result_type = UIntType |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
default |
|
inlineexplicit |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 57 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 55 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
inline |
Definition at line 59 of file uniform_bits_distribution.hpp.
|
friend |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
friend |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
friend |
Definition at line 51 of file uniform_bits_distribution.hpp.
|
friend |
Definition at line 51 of file uniform_bits_distribution.hpp.