vSMC
vSMC: Scalable Monte Carlo
Classes | Namespaces | Macros | Typedefs | Functions
uniform_real_distribution.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::UniformRealLRDistribution< RealType, Left, Right >
 Uniform real distribution with open/closed variants. More...
 
class  vsmc::UniformRealLRDistribution< RealType, Left, Right >::param_type
 

Namespaces

 vsmc
 
 vsmc::internal
 

Macros

#define VSMC_RUNTIME_ASSERT_RNG_UNIFORM_REAL_DISTRIBUTION_PARAM_CHECK(a, b)
 

Typedefs

template<typename RealType = double>
using vsmc::UniformRealCCDistribution = UniformRealLRDistribution< RealType, Closed, Closed >
 Uniform real distribution on cloed-closed interval. More...
 
template<typename RealType = double>
using vsmc::UniformRealCODistribution = UniformRealLRDistribution< RealType, Closed, Open >
 Uniform real distribution on open-closed interval. More...
 
template<typename RealType = double>
using vsmc::UniformRealDistribution = UniformRealCODistribution< RealType >
 Uniform real distribution. More...
 
template<typename RealType = double>
using vsmc::UniformRealOCDistribution = UniformRealLRDistribution< RealType, Open, Closed >
 Uniform real distribution on open-open interval. More...
 
template<typename RealType = double>
using vsmc::UniformRealOODistribution = UniformRealLRDistribution< RealType, Open, Open >
 Uniform real distribution on cloed-open interval. More...
 

Functions

template<typename RealType , typename RNGType , typename Left , typename Right >
void vsmc::rng_rand (RNGType &, UniformRealLRDistribution< RealType, Left, Right > &, std::size_t, RealType *)
 
template<typename RealType , typename RNGType >
void vsmc::uniform_real_cc_distribution (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 Generate uniform real random variates on closed-closed interval. More...
 
template<typename RealType , typename RNGType >
void vsmc::uniform_real_co_distribution (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 Generate uniform real random variates on closed-open interval. More...
 
template<typename RealType , typename RNGType >
void vsmc::uniform_real_distribution (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 Generate uniform real random variates. More...
 
template<typename RealType , typename Left , typename Right , typename RNGType >
void vsmc::uniform_real_lr_distribution (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 Generate uniform real random variates with open/closed variants. More...
 
template<typename RealType , typename Left , typename Right , typename RNGType >
void vsmc::internal::uniform_real_lr_distribution_impl (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 
template<typename RealType , typename RNGType >
void vsmc::uniform_real_oc_distribution (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 Generate uniform real random variates on open-closed interval. More...
 
template<typename RealType , typename RNGType >
void vsmc::uniform_real_oo_distribution (RNGType &rng, std::size_t n, RealType *r, RealType a, RealType b)
 Generate uniform real random variates on open-open interval. More...
 

Macro Definition Documentation

#define VSMC_RUNTIME_ASSERT_RNG_UNIFORM_REAL_DISTRIBUTION_PARAM_CHECK (   a,
 
)
Value:
VSMC_RUNTIME_ASSERT((a <= b), "**UniformRealDistribution** CONSTRUCTED " \
"WITH INVALID MINIMUM AND MAXIMUM " \
"PARAMTER VALUES")
#define VSMC_RUNTIME_ASSERT(cond, msg)
Definition: assert.hpp:55

Definition at line 38 of file uniform_real_distribution.hpp.