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, 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)
 
template<typename RNGType >
result_type operator() (RNGType &rng)
 
param_type param () const
 
void param (const param_type &parm)
 
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 500 of file common.hpp.

Member Typedef Documentation

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

Definition at line 59 of file normal_distribution.hpp.

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

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

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

Definition at line 59 of file normal_distribution.hpp.

Member Function Documentation

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

Definition at line 67 of file normal_distribution.hpp.

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

Definition at line 59 of file normal_distribution.hpp.

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

Definition at line 62 of file normal_distribution.hpp.

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

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

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

Definition at line 59 of file normal_distribution.hpp.

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

Definition at line 59 of file normal_distribution.hpp.

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

Definition at line 72 of file normal_distribution.hpp.

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

Definition at line 59 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 92 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 99 of file normal_distribution.hpp.

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

Definition at line 78 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 110 of file normal_distribution.hpp.