vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Macros | Functions
u01_sequence.hpp File Reference
#include <vsmc/rng/internal/common.hpp>
#include <vsmc/rng/u01_distribution.hpp>

Go to the source code of this file.

Classes

class  vsmc::U01SequenceSorted< RNGType, RealType >
 Generate a fixed length sequence of uniform \([0,1)\) random variates by sorting. More...
 
class  vsmc::U01SequenceStratified< RNGType, RealType >
 Generate a fixed length sequence of uniform \([0,1)\) random variates by stratified sampling. More...
 
class  vsmc::U01SequenceSystematic< RNGType, RealType >
 Generate a fixed length sequence of uniform \([0,1)\) random variates by systematic sampling. More...
 

Namespaces

 vsmc
 

Macros

#define VSMC_RUNTIME_ASSERT_RNG_U01_SEQUENCE(Method)
 

Functions

template<typename RealType >
void vsmc::u01_sorted (std::size_t N, const RealType *u01, RealType *u01seq)
 Tranform a sequence of standard uniform random numbers to sorted sequence. More...
 
template<typename RealType >
void vsmc::u01_stratified (std::size_t N, const RealType *u01, RealType *u01seq)
 Transform a sequence of standard uniform random numbers to a stratified sequence. More...
 
template<typename RealType >
void vsmc::u01_systematic (std::size_t N, RealType u01, RealType *u01seq)
 Transform a single standard uniform random number to a systematic sequence. More...
 

Macro Definition Documentation

#define VSMC_RUNTIME_ASSERT_RNG_U01_SEQUENCE (   Method)
Value:
VSMC_RUNTIME_ASSERT((n < N_ && (n == n_ || n == n_ + 1 || n_ == N_)), \
"**U01Sequence" #Method "::operator[]** INVALID INDEX")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:53

Definition at line 38 of file u01_sequence.hpp.