STLdoc
STLdocumentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
lognormal_distribution< _Ty > Class Template Reference

Classes

struct  param_type
 

Public Types

typedef lognormal_distribution< _Ty > _Myt
 
typedef _Ty result_type
 

Public Member Functions

 lognormal_distribution (_Ty _M0=_Ty(0), _Ty _S0=_Ty(1))
 
 lognormal_distribution (param_type _Par0)
 
_Ty m () const
 
_Ty s () const
 
param_type param () const
 
void param (const param_type &_Par0)
 
result_type() min () const
 
result_type() max () const
 
void reset ()
 
template<class _Engine >
result_type operator() (_Engine &_Eng) const
 
template<class _Engine >
result_type operator() (_Engine &_Eng, const param_type &_Par0) const
 
template<class _Elem , class _Traits >
basic_istream< _Elem, _Traits > & _Read (basic_istream< _Elem, _Traits > &_Istr)
 
template<class _Elem , class _Traits >
basic_ostream< _Elem, _Traits > & _Write (basic_ostream< _Elem, _Traits > &_Ostr) const
 

Private Member Functions

template<class _Engine >
result_type _Eval (_Engine &_Eng, param_type _Par0) const
 

Private Attributes

param_type _Par
 

Member Typedef Documentation

template<class _Ty = double>
typedef lognormal_distribution<_Ty> lognormal_distribution< _Ty >::_Myt
template<class _Ty = double>
typedef _Ty lognormal_distribution< _Ty >::result_type

Constructor & Destructor Documentation

template<class _Ty = double>
lognormal_distribution< _Ty >::lognormal_distribution ( _Ty  _M0 = _Ty(0),
_Ty  _S0 = _Ty(1) 
)
inlineexplicit
4682  : _Par(_M0, _S0)
4683  { // construct
4684  }
param_type _Par
Definition: random:4768
template<class _Ty = double>
lognormal_distribution< _Ty >::lognormal_distribution ( param_type  _Par0)
inlineexplicit
4687  : _Par(_Par0)
4688  { // construct from parameter package
4689  }
param_type _Par
Definition: random:4768

Member Function Documentation

template<class _Ty = double>
template<class _Engine >
result_type lognormal_distribution< _Ty >::_Eval ( _Engine &  _Eng,
param_type  _Par0 
) const
inlineprivate
4763  { // generate pseudo-random value
4764  normal_distribution<_Ty> _Dist(_Par0._Mx, _Par0._Sx);
4765  return (_CSTD exp(_Dist(_Eng)));
4766  }
Definition: random:3868
float exp(float _X) __GPU_ONLY
Calculates the base-e exponential of the argument
Definition: amp_math.h:471
#define _CSTD
Definition: yvals.h:559
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_istream<_Elem, _Traits>& lognormal_distribution< _Ty >::_Read ( basic_istream< _Elem, _Traits > &  _Istr)
inline
4741  { // read state from _Istr
4742  _Ty _M0;
4743  _Ty _S0;
4744  _In(_Istr, _M0);
4745  _In(_Istr, _S0);
4746  _Par._Init(_M0, _S0);
4747  return (_Istr);
4748  }
void _Init(_Ty _M0, _Ty _S0)
Definition: random:4668
param_type _Par
Definition: random:4768
basic_istream< _Elem, _Traits > & _In(basic_istream< _Elem, _Traits > &_Is, _Ty &_Dx)
Definition: random:151
template<class _Ty = double>
template<class _Elem , class _Traits >
basic_ostream<_Elem, _Traits>& lognormal_distribution< _Ty >::_Write ( basic_ostream< _Elem, _Traits > &  _Ostr) const
inline
4754  { // write state to _Ostr
4755  _Out(_Ostr, _Par._Mx);
4756  _Out(_Ostr, _Par._Sx);
4757  return (_Ostr);
4758  }
basic_ostream< _Elem, _Traits > & _Out(basic_ostream< _Elem, _Traits > &_Os, _Ty _Dx)
Definition: random:169
_Ty _Sx
Definition: random:4677
param_type _Par
Definition: random:4768
_Ty _Mx
Definition: random:4676
template<class _Ty = double>
_Ty lognormal_distribution< _Ty >::m ( ) const
inline
4692  { // return m value
4693  return (_Par.m());
4694  }
param_type _Par
Definition: random:4768
_Ty m() const
Definition: random:4658
template<class _Ty = double>
result_type() lognormal_distribution< _Ty >::max ( ) const
inline
4717  { // get largest possible result
4718  return ((numeric_limits<result_type>::max)());
4719  }
Definition: limits:79
template<class _Ty = double>
result_type() lognormal_distribution< _Ty >::min ( ) const
inline
4712  { // get smallest possible result
4713  return (-(numeric_limits<result_type>::max)());
4714  }
Definition: limits:79
template<class _Ty = double>
template<class _Engine >
result_type lognormal_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
4727  { // return next value
4728  return (_Eval(_Eng, _Par));
4729  }
result_type _Eval(_Engine &_Eng, param_type _Par0) const
Definition: random:4762
param_type _Par
Definition: random:4768
template<class _Ty = double>
template<class _Engine >
result_type lognormal_distribution< _Ty >::operator() ( _Engine &  _Eng,
const param_type _Par0 
) const
inline
4733  { // return next value, given parameter package
4734  return (_Eval(_Eng, _Par0));
4735  }
result_type _Eval(_Engine &_Eng, param_type _Par0) const
Definition: random:4762
template<class _Ty = double>
param_type lognormal_distribution< _Ty >::param ( ) const
inline
4702  { // return parameter package
4703  return (_Par);
4704  }
param_type _Par
Definition: random:4768
template<class _Ty = double>
void lognormal_distribution< _Ty >::param ( const param_type _Par0)
inline
4707  { // set parameter package
4708  _Par = _Par0;
4709  }
param_type _Par
Definition: random:4768
template<class _Ty = double>
void lognormal_distribution< _Ty >::reset ( )
inline
4722  { // clear internal state
4723  }
template<class _Ty = double>
_Ty lognormal_distribution< _Ty >::s ( ) const
inline
4697  { // return s value
4698  return (_Par.s());
4699  }
_Ty s() const
Definition: random:4663
param_type _Par
Definition: random:4768

Member Data Documentation

template<class _Ty = double>
param_type lognormal_distribution< _Ty >::_Par
private

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