vSMC
vSMC: Scalable Monte Carlo
|
Generate a fixed length sequence of uniform \([0,1)\) random variates by stratified sampling. More...
#include <vsmc/rng/u01_sequence.hpp>
Public Types | |
using | result_type = RealType |
Public Member Functions | |
U01SequenceStratified (std::size_t N, RNGType &rng) | |
result_type | operator() (std::size_t n) |
result_type | operator[] (std::size_t n) |
Generate a fixed length sequence of uniform \([0,1)\) random variates by stratified sampling.
This is similar to U01SequenceSorted except that, instead of generating the sequence as if by sorting. It is done by generating \(u_i = U_i / N + (i - 1) / N\) where \(U_i\) is uniform \([0,1)\) random variates.
Definition at line 177 of file u01_sequence.hpp.
using vsmc::U01SequenceStratified< RNGType, RealType >::result_type = RealType |
Definition at line 180 of file u01_sequence.hpp.
|
inline |
Definition at line 182 of file u01_sequence.hpp.
|
inline |
Definition at line 205 of file u01_sequence.hpp.
|
inline |
Definition at line 191 of file u01_sequence.hpp.