vg
tools for working with variation graphs
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vg::truncated_normal_distribution< T > Class Template Reference

#include <statistics.hpp>

Public Types

typedef T result_type
 

Public Member Functions

 truncated_normal_distribution (T _mu=0.0, T _sigma=1.0, T _a=-numeric_limits< double >::max()/2.0, T _b=numeric_limits< double >::max()/2.0)
 
void reset ()
 
template<class Generator >
operator() (Generator &_g)
 
mean () const
 
stddev () const
 
density (T x) const
 
cumul (T x) const
 

Protected Member Functions

Z () const
 
A () const
 

Protected Attributes

m_mu
 
m_sigma
 
m_alpha
 
m_beta
 
vg::uniform_real_distribution< T > m_distU1
 

Member Typedef Documentation

◆ result_type

template<typename T = double>
typedef T vg::truncated_normal_distribution< T >::result_type

Constructor & Destructor Documentation

◆ truncated_normal_distribution()

template<typename T = double>
vg::truncated_normal_distribution< T >::truncated_normal_distribution ( _mu = 0.0,
_sigma = 1.0,
_a = -numeric_limits<double>::max() / 2.0,
_b = numeric_limits<double>::max() / 2.0 
)
inline

Member Function Documentation

◆ A()

template<typename T = double>
T vg::truncated_normal_distribution< T >::A ( ) const
inlineprotected

◆ cumul()

template<typename T = double>
T vg::truncated_normal_distribution< T >::cumul ( x) const
inline

◆ density()

template<typename T = double>
T vg::truncated_normal_distribution< T >::density ( x) const
inline

◆ mean()

template<typename T = double>
T vg::truncated_normal_distribution< T >::mean ( ) const
inline

◆ operator()()

template<typename T = double>
template<class Generator >
T vg::truncated_normal_distribution< T >::operator() ( Generator &  _g)
inline

◆ reset()

template<typename T = double>
void vg::truncated_normal_distribution< T >::reset ( )
inline

◆ stddev()

template<typename T = double>
T vg::truncated_normal_distribution< T >::stddev ( ) const
inline

◆ Z()

template<typename T = double>
T vg::truncated_normal_distribution< T >::Z ( ) const
inlineprotected

Member Data Documentation

◆ m_alpha

template<typename T = double>
T vg::truncated_normal_distribution< T >::m_alpha
protected

◆ m_beta

template<typename T = double>
T vg::truncated_normal_distribution< T >::m_beta
protected

◆ m_distU1

template<typename T = double>
vg::uniform_real_distribution<T> vg::truncated_normal_distribution< T >::m_distU1
protected

◆ m_mu

template<typename T = double>
T vg::truncated_normal_distribution< T >::m_mu
protected

◆ m_sigma

template<typename T = double>
T vg::truncated_normal_distribution< T >::m_sigma
protected

The documentation for this class was generated from the following file: