libstdc++
|
A negative_binomial_distribution random number distribution.
The formula for the negative binomial probability mass function is where and are the parameters of the distribution.
typedef _IntType std::negative_binomial_distribution< _IntType >::result_type |
_IntType std::negative_binomial_distribution< _IntType >::k | ( | ) | const [inline] |
result_type std::negative_binomial_distribution< _IntType >::max | ( | ) | const [inline] |
result_type std::negative_binomial_distribution< _IntType >::min | ( | ) | const [inline] |
negative_binomial_distribution< _IntType >::result_type std::negative_binomial_distribution< _IntType >::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) |
Generating functions.
Definition at line 1087 of file random.tcc.
double std::negative_binomial_distribution< _IntType >::p | ( | ) | const [inline] |
param_type std::negative_binomial_distribution< _IntType >::param | ( | ) | const [inline] |
void std::negative_binomial_distribution< _IntType >::param | ( | const param_type & | __param | ) | [inline] |
void std::negative_binomial_distribution< _IntType >::reset | ( | ) | [inline] |
Resets the distribution state.
Definition at line 3832 of file random.h.
References std::gamma_distribution< _RealType >::reset().
std::basic_ostream<_CharT, _Traits>& operator<< | ( | std::basic_ostream< _CharT, _Traits > & | __os, |
const std::negative_binomial_distribution< _IntType1 > & | __x | ||
) | [friend] |
Inserts a negative_binomial_distribution random number distribution __x
into the output stream __os
.
__os | An output stream. |
__x | A negative_binomial_distribution random number distribution. |
__x
inserted or in an error state. bool operator== | ( | const std::negative_binomial_distribution< _IntType1 > & | __d1, |
const std::negative_binomial_distribution< _IntType1 > & | __d2 | ||
) | [friend] |
std::basic_istream<_CharT, _Traits>& operator>> | ( | std::basic_istream< _CharT, _Traits > & | __is, |
std::negative_binomial_distribution< _IntType1 > & | __x | ||
) | [friend] |
Extracts a negative_binomial_distribution random number distribution __x
from the input stream __is
.
__is | An input stream. |
__x | A negative_binomial_distribution random number generator engine. |
__x
extracted or in an error state.