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

Public Types

typedef double _Ty1
 

Public Member Functions

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

Private Attributes

_Ty1 _G0
 

Member Typedef Documentation

template<class _Ty = int>
typedef double _Small_poisson_distribution< _Ty >::_Ty1

Member Function Documentation

template<class _Ty = int>
void _Small_poisson_distribution< _Ty >::_Init ( const _Ty1 _Mean0)
inline
2813  { // set internal state
2814  _G0 = _CSTD exp(-_Mean0);
2815  }
_Ty1 _G0
Definition: random:2818
float exp(float _X) __GPU_ONLY
Calculates the base-e exponential of the argument
Definition: amp_math.h:471
#define _CSTD
Definition: yvals.h:570
template<class _Ty = int>
template<class _Engine >
_Ty _Small_poisson_distribution< _Ty >::operator() ( _Engine &  _Eng) const
inline
2800  { // return next value
2801  _Ty _Res;
2802  _Ty1 _Val;
2803  for (_Res = 0, _Val = 1.0; ; ++_Res)
2804  { // count repetitions
2805  _Val *= _NRAND(_Eng, _Ty1);
2806  if (_Val <= _G0)
2807  break;
2808  }
2809  return (_Res);
2810  }
_Ty1 _G0
Definition: random:2818
#define _NRAND(eng, resty)
Definition: random:345
double _Ty1
Definition: random:2795
_FwdIt const _Ty _Val
Definition: algorithm:1938

Member Data Documentation

template<class _Ty = int>
_Ty1 _Small_poisson_distribution< _Ty >::_G0
private

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