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

Normal distribution. More...

#include <vsmc/rng/internal/common.hpp>

Classes

class  param_type
 

Public Types

using distribution_type = NormalDistribution< RealType >
 
using result_type = RealType
 

Public Member Functions

 NormalDistribution (result_type mean=0, result_type stddev=1)
 
 NormalDistribution (const param_type &param)
 
result_type max () const
 
result_type mean () const
 
result_type min () const
 
template<typename RNGType >
result_type operator() (RNGType &rng)
 
template<typename RNGType >
result_type operator() (RNGType &rng, const param_type &param)
 
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)
 
const param_typeparam () const
 
void param (const param_type &param)
 
void pram (param_type &&param)
 
void reset ()
 
result_type stddev () const
 

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::NormalDistribution< RealType >

Normal distribution.

Definition at line 582 of file common.hpp.

Member Typedef Documentation

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

Definition at line 63 of file normal_distribution.hpp.

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

Definition at line 62 of file normal_distribution.hpp.

Constructor & Destructor Documentation

template<typename RealType>
vsmc::NormalDistribution< RealType >::NormalDistribution ( result_type  mean = 0,
result_type  stddev = 1 
)
inlineexplicit

Definition at line 65 of file normal_distribution.hpp.

template<typename RealType>
vsmc::NormalDistribution< RealType >::NormalDistribution ( const param_type param)
inlineexplicit

Definition at line 71 of file normal_distribution.hpp.

Member Function Documentation

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

Definition at line 86 of file normal_distribution.hpp.

template<typename RealType>
result_type vsmc::NormalDistribution< RealType >::mean ( ) const
inline

Definition at line 77 of file normal_distribution.hpp.

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

Definition at line 81 of file normal_distribution.hpp.

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

Definition at line 109 of file normal_distribution.hpp.

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

Definition at line 115 of file normal_distribution.hpp.

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

Definition at line 121 of file normal_distribution.hpp.

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

Definition at line 127 of file normal_distribution.hpp.

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

Definition at line 94 of file normal_distribution.hpp.

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

Definition at line 96 of file normal_distribution.hpp.

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

Definition at line 102 of file normal_distribution.hpp.

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

Definition at line 88 of file normal_distribution.hpp.

template<typename RealType>
result_type vsmc::NormalDistribution< RealType >::stddev ( ) const
inline

Definition at line 79 of file normal_distribution.hpp.

Friends And Related Function Documentation

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

Definition at line 152 of file normal_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 159 of file normal_distribution.hpp.

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

Definition at line 138 of file normal_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 173 of file normal_distribution.hpp.