|
| poisson_distribution (double __mean=1.0) |
|
| poisson_distribution (const param_type &__p) |
|
template<typename _ForwardIterator , typename _UniformRandomNumberGenerator > |
void | __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng) |
|
template<typename _ForwardIterator , typename _UniformRandomNumberGenerator > |
void | __generate (_ForwardIterator __f, _ForwardIterator __t, _UniformRandomNumberGenerator &__urng, const param_type &__p) |
|
template<typename _UniformRandomNumberGenerator > |
void | __generate (result_type *__f, result_type *__t, _UniformRandomNumberGenerator &__urng, const param_type &__p) |
|
result_type | max () const |
|
double | mean () const |
|
result_type | min () const |
|
template<typename _UniformRandomNumberGenerator > |
result_type | operator() (_UniformRandomNumberGenerator &__urng) |
|
template<typename _UniformRandomNumberGenerator > |
result_type | operator() (_UniformRandomNumberGenerator &__urng, const param_type &__p) |
|
param_type | param () const |
|
void | param (const param_type &__param) |
|
void | reset () |
|
template<typename _IntType = int>
class std::poisson_distribution< _IntType >
A discrete Poisson random number distribution.
The formula for the Poisson probability density function is where is the parameter of the distribution.
Definition at line 4265 of file random.h.
template<typename _IntType >
template<typename _UniformRandomNumberGenerator >
A rejection algorithm when mean >= 12 and a simple method based upon the multiplication of uniform random variates otherwise. NB: The former is available only if _GLIBCXX_USE_C99_MATH_TR1 is defined.
Reference: Devroye, L. Non-Uniform Random Variates Generation. Springer-Verlag, New York, 1986, Ch. X, Sects. 3.3 & 3.4 (+ Errata!).
Definition at line 1284 of file bits/random.tcc.
References std::abs(), std::numeric_limits< _Tp >::epsilon(), std::exp(), std::ios_base::flags(), std::left(), std::log(), std::numeric_limits< _Tp >::max(), std::max(), std::binomial_distribution< _IntType >::operator()(), std::__detail::operator>>(), std::poisson_distribution< _IntType >::param(), std::scientific(), std::skipws(), and std::sqrt().