vSMC
vSMC: Scalable Monte Carlo
Classes | Public Types | Public Member Functions | Friends | List of all members
vsmc::U01CCDistribution< RealType > Class Template Reference

Standard uniform distribution on [0, 1]. More...

#include <vsmc/rng/u01_distribution.hpp>

Classes

class  param_type
 

Public Types

using distribution_type = U01CCDistribution< RealType >
 
using result_type = RealType
 

Public Member Functions

 U01CCDistribution ()=default
 
 U01CCDistribution (const param_type &)
 
result_type max () const
 
result_type min () const
 
template<typename RNGType >
void operator() (RNGType &rng, std::size_t n, result_type *r)
 
template<typename RNGType >
void operator() (RNGType &rng, std::size_t n, result_type *r, const param_type &param)
 
template<typename RNGType >
result_type operator() (RNGType &rng, const param_type &param)
 
template<typename RNGType >
result_type operator() (RNGType &rng)
 
void param (const param_type &param)
 
const param_typeparam () const
 
void pram (param_type &&param)
 
void reset ()
 

Friends

bool operator!= (const distribution_type &dist1, const distribution_type &dist2)
 
template<typename CharT , typename Traits >
std::basic_ostream< CharT, Traits > & operator<< (std::basic_ostream< CharT, Traits > &os, const distribution_type &dist)
 
bool operator== (const distribution_type &dist1, const distribution_type &dist2)
 
template<typename CharT , typename Traits >
std::basic_istream< CharT, Traits > & operator>> (std::basic_istream< CharT, Traits > &is, distribution_type &dist)
 

Detailed Description

template<typename RealType>
class vsmc::U01CCDistribution< RealType >

Standard uniform distribution on [0, 1].

Definition at line 78 of file u01_distribution.hpp.

Member Typedef Documentation

template<typename RealType >
using vsmc::U01CCDistribution< RealType >::distribution_type = U01CCDistribution< RealType >

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
using vsmc::U01CCDistribution< RealType >::result_type = RealType

Definition at line 81 of file u01_distribution.hpp.

Constructor & Destructor Documentation

template<typename RealType >
vsmc::U01CCDistribution< RealType >::U01CCDistribution ( )
default
template<typename RealType >
vsmc::U01CCDistribution< RealType >::U01CCDistribution ( const param_type )
inlineexplicit

Definition at line 81 of file u01_distribution.hpp.

Member Function Documentation

template<typename RealType >
result_type vsmc::U01CCDistribution< RealType >::max ( ) const
inline

Definition at line 86 of file u01_distribution.hpp.

template<typename RealType >
result_type vsmc::U01CCDistribution< RealType >::min ( ) const
inline

Definition at line 84 of file u01_distribution.hpp.

template<typename RealType >
template<typename RNGType >
result_type vsmc::U01CCDistribution< RealType >::operator() ( RNGType &  rng)
inline

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
template<typename RNGType >
result_type vsmc::U01CCDistribution< RealType >::operator() ( RNGType &  rng,
const param_type param 
)
inline

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
template<typename RNGType >
void vsmc::U01CCDistribution< RealType >::operator() ( RNGType &  rng,
std::size_t  n,
result_type r,
const param_type param 
)
inline

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
template<typename RNGType >
void vsmc::U01CCDistribution< RealType >::operator() ( RNGType &  rng,
std::size_t  n,
result_type r 
)
inline

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
const param_type& vsmc::U01CCDistribution< RealType >::param ( ) const
inline

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
void vsmc::U01CCDistribution< RealType >::param ( const param_type param)
inline

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
void vsmc::U01CCDistribution< RealType >::pram ( param_type &&  param)
inline

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
void vsmc::U01CCDistribution< RealType >::reset ( )
inline

Definition at line 88 of file u01_distribution.hpp.

Friends And Related Function Documentation

template<typename RealType >
bool operator!= ( const distribution_type dist1,
const distribution_type dist2 
)
friend

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
template<typename CharT , typename Traits >
std::basic_ostream<CharT, Traits>& operator<< ( std::basic_ostream< CharT, Traits > &  os,
const distribution_type dist 
)
friend

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
bool operator== ( const distribution_type dist1,
const distribution_type dist2 
)
friend

Definition at line 81 of file u01_distribution.hpp.

template<typename RealType >
template<typename CharT , typename Traits >
std::basic_istream<CharT, Traits>& operator>> ( std::basic_istream< CharT, Traits > &  is,
distribution_type dist 
)
friend

Definition at line 81 of file u01_distribution.hpp.