STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
_Small_poisson_distribution< _Ty0, _Ty1 > Class Template Reference

Public Member Functions

template<class _Engine >
_Ty0 operator() (_Engine &_Eng) const
 
void _Init (const _Ty1 &_Mean0)
 

Private Attributes

_Ty1 _G0
 

Member Function Documentation

template<class _Ty0 = int, class _Ty1 = double>
void _Small_poisson_distribution< _Ty0, _Ty1 >::_Init ( const _Ty1 &  _Mean0)
inline
3119  { // set internal state
3120  _G0 = _CSTD exp(-_Mean0);
3121  }
float exp(float _X) __GPU_ONLY
Calculates the base-e exponential of the argument
Definition: amp_math.h:471
_Ty1 _G0
Definition: random:3124
#define _CSTD
Definition: yvals.h:559
template<class _Ty0 = int, class _Ty1 = double>
template<class _Engine >
_Ty0 _Small_poisson_distribution< _Ty0, _Ty1 >::operator() ( _Engine &  _Eng) const
inline
3106  { // return next value
3107  _Ty0 _Res;
3108  _Ty1 _Val;
3109  for (_Res = 0, _Val = 1.0; ; ++_Res)
3110  { // count repetitions
3111  _Val *= _NRAND(_Eng, _Ty1);
3112  if (_Val <= _G0)
3113  break;
3114  }
3115  return (_Res);
3116  }
_Ty1 _G0
Definition: random:3124
#define _NRAND(eng, resty)
Definition: random:74
_FwdIt const _Ty _Val
Definition: algorithm:1938

Member Data Documentation

template<class _Ty0 = int, class _Ty1 = double>
_Ty1 _Small_poisson_distribution< _Ty0, _Ty1 >::_G0
private

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