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
2781  { // set internal state
2782  _G0 = _CSTD exp(-_Mean0);
2783  }
_Ty1 _G0
Definition: random:2786
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
2768  { // return next value
2769  _Ty _Res;
2770  _Ty1 _Val;
2771  for (_Res = 0, _Val = 1.0; ; ++_Res)
2772  { // count repetitions
2773  _Val *= _NRAND(_Eng, _Ty1);
2774  if (_Val <= _G0)
2775  break;
2776  }
2777  return (_Res);
2778  }
_Ty1 _G0
Definition: random:2786
_In_ int _Val
Definition: vcruntime_string.h:62
#define _NRAND(eng, resty)
Definition: random:323
double _Ty1
Definition: random:2763

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: