vSMC
vSMC: Scalable Monte Carlo
|
Generate a fixed length sequence of uniform \([0,1)\) random variates by systematic sampling. More...
#include <vsmc/rng/u01_sequence.hpp>
Public Types | |
using | result_type = RealType |
Public Member Functions | |
U01SequenceSystematic (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 systematic 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 / N + (i - 1) / N\) where \(U\) is uniform \([0,1)\) random variates and it is generated only once for all \(i\).
Definition at line 226 of file u01_sequence.hpp.
using vsmc::U01SequenceSystematic< RNGType, RealType >::result_type = RealType |
Definition at line 229 of file u01_sequence.hpp.
|
inline |
Definition at line 231 of file u01_sequence.hpp.
|
inline |
Definition at line 251 of file u01_sequence.hpp.
|
inline |
Definition at line 238 of file u01_sequence.hpp.