vSMC  v3.0.0
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
 Sorted of standard uniform numbers. More...
 
class  vsmc::U01SequenceStratified
 Stratified standard uniform numbers. More...
 
class  vsmc::U01SequenceSystematic
 Systematic standard uniform numbers. More...
 

Namespaces

 vsmc
 
 vsmc::internal
 

Macros

#define VSMC_RUNTIME_ASSERT_RNG_U01_SEQUENCE(Method)
 

Functions

template<typename RealType , typename RNGType >
void vsmc::u01_rand_sorted (RNGType &rng, std::size_t N, RealType *r)
 Generate sorted standard uniform numbers with \(O(N)\) cost. More...
 
template<std::size_t K, typename RealType , typename RNGType >
void vsmc::internal::u01_rand_sorted_impl (RNGType &rng, std::size_t n0, std::size_t n, RealType *r, std::size_t N, RealType &lmax)
 
template<typename RealType , typename RNGType >
void vsmc::u01_rand_stratified (RNGType &rng, std::size_t N, RealType *r)
 Generate stratified standard uniform numbers. More...
 
template<typename RealType , typename RNGType >
void vsmc::internal::u01_rand_stratified_impl (RNGType &rng, std::size_t n0, std::size_t n, RealType *r, RealType delta)
 
template<typename RealType , typename RNGType >
void vsmc::u01_rand_systematic (RNGType &rng, std::size_t N, RealType *r)
 Generate systematic standard uniform numbers. More...
 
template<typename RealType >
void vsmc::u01_trans_sorted (std::size_t N, const RealType *u01, RealType *r)
 Tranform a sequence of standard uniform random numbers to sorted sequence. More...
 
template<std::size_t K, typename RealType >
void vsmc::internal::u01_trans_sorted_impl (std::size_t n0, std::size_t n, const RealType *u01, RealType *r, std::size_t N, RealType &lmax)
 
template<typename RealType >
void vsmc::u01_trans_stratified (std::size_t N, const RealType *u01, RealType *r)
 Transform a sequence of standard uniform random numbers to a stratified sequence. More...
 
template<typename RealType >
void vsmc::internal::u01_trans_stratified_impl (std::size_t n0, std::size_t n, const RealType *u01, RealType *r, RealType delta)
 
template<typename RealType >
void vsmc::u01_trans_systematic (std::size_t N, const RealType *u01, RealType *r)
 Transform a single standard uniform random number to a systematic sequence. More...
 
template<typename RealType >
void vsmc::internal::u01_trans_systematic_impl (std::size_t n0, std::size_t n, RealType u, RealType *r, RealType delta)
 

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:59

Definition at line 38 of file u01_sequence.hpp.