STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | Public Member Functions | Public Attributes | List of all members
normal_distribution< _Ty >::param_type Struct Reference

Public Types

typedef _Myt distribution_type
 

Public Member Functions

 param_type (_Ty _Mean0=0.0, _Ty _Sigma0=1.0)
 
bool operator== (const param_type &_Right) const
 
bool operator!= (const param_type &_Right) const
 
_Ty mean () const
 
_Ty sigma () const
 
_Ty stddev () const
 
void _Init (_Ty _Mean0, _Ty _Sigma0)
 

Public Attributes

_Ty _Mean
 
_Ty _Sigma
 

Member Typedef Documentation

template<class _Ty = double>
typedef _Myt normal_distribution< _Ty >::param_type::distribution_type

Constructor & Destructor Documentation

template<class _Ty = double>
normal_distribution< _Ty >::param_type::param_type ( _Ty  _Mean0 = 0.0,
_Ty  _Sigma0 = 1.0 
)
inline
3883  { // construct from parameters
3884  _Init(_Mean0, _Sigma0);
3885  }
void _Init(_Ty _Mean0, _Ty _Sigma0)
Definition: random:3912

Member Function Documentation

template<class _Ty = double>
void normal_distribution< _Ty >::param_type::_Init ( _Ty  _Mean0,
_Ty  _Sigma0 
)
inline
3913  { // set internal state
3914  _RNG_ASSERT(0.0 < _Sigma0,
3915  "invalid sigma argument for normal_distribution");
3916  _Mean = _Mean0;
3917  _Sigma = _Sigma0;
3918  }
_Ty _Mean
Definition: random:3920
#define _RNG_ASSERT(ex, msg)
Definition: random:27
_Ty _Sigma
Definition: random:3921
template<class _Ty = double>
_Ty normal_distribution< _Ty >::param_type::mean ( ) const
inline
3898  { // return mean value
3899  return (_Mean);
3900  }
_Ty _Mean
Definition: random:3920
template<class _Ty = double>
bool normal_distribution< _Ty >::param_type::operator!= ( const param_type _Right) const
inline
3893  { // test for inequality
3894  return (!(*this == _Right));
3895  }
const _Ty & _Right
Definition: algorithm:4087
template<class _Ty = double>
bool normal_distribution< _Ty >::param_type::operator== ( const param_type _Right) const
inline
3888  { // test for equality
3889  return (_Mean == _Right._Mean && _Sigma == _Right._Sigma);
3890  }
_Ty _Mean
Definition: random:3920
_Ty _Sigma
Definition: random:3921
const _Ty & _Right
Definition: algorithm:4087
template<class _Ty = double>
_Ty normal_distribution< _Ty >::param_type::sigma ( ) const
inline
3903  { // return sigma value
3904  return (_Sigma);
3905  }
_Ty _Sigma
Definition: random:3921
template<class _Ty = double>
_Ty normal_distribution< _Ty >::param_type::stddev ( ) const
inline
3908  { // return sigma value
3909  return (_Sigma);
3910  }
_Ty _Sigma
Definition: random:3921

Member Data Documentation

template<class _Ty = double>
_Ty normal_distribution< _Ty >::param_type::_Mean
template<class _Ty = double>
_Ty normal_distribution< _Ty >::param_type::_Sigma

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