A discrete_distribution random number distribution. More...
A discrete_distribution random number distribution.
The formula for the discrete probability mass function is
Definition at line 4682 of file random.h.
typedef _IntType std::discrete_distribution< _IntType >::result_type |
result_type std::discrete_distribution< _IntType >::max | ( | ) | const [inline] |
Returns the least upper bound value of the distribution.
Definition at line 4795 of file random.h.
References std::vector< _Tp, _Alloc >::size().
result_type std::discrete_distribution< _IntType >::min | ( | ) | const [inline] |
result_type std::discrete_distribution< _IntType >::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) | [inline] |
Generating functions.
Definition at line 4803 of file random.h.
References std::discrete_distribution< _IntType >::operator()(), and std::discrete_distribution< _IntType >::param().
Referenced by std::discrete_distribution< _IntType >::operator()().
void std::discrete_distribution< _IntType >::param | ( | const param_type & | __param | ) | [inline] |
param_type std::discrete_distribution< _IntType >::param | ( | ) | const [inline] |
Returns the parameter set of the distribution.
Definition at line 4773 of file random.h.
Referenced by std::discrete_distribution< _IntType >::operator()(), and std::operator==().
std::vector<double> std::discrete_distribution< _IntType >::probabilities | ( | ) | const [inline] |
void std::discrete_distribution< _IntType >::reset | ( | ) | [inline] |
std::basic_ostream<_CharT, _Traits>& operator<< | ( | std::basic_ostream< _CharT, _Traits > & | , | |
const std::discrete_distribution< _IntType1 > & | ||||
) | [friend] |
Inserts a discrete_distribution random number distribution __x
into the output stream __os
.
__os | An output stream. | |
__x | A discrete_distribution random number distribution. |
__x
inserted or in an error state. std::basic_istream<_CharT, _Traits>& operator>> | ( | std::basic_istream< _CharT, _Traits > & | , | |
std::discrete_distribution< _IntType1 > & | ||||
) | [friend] |
Extracts a discrete_distribution random number distribution __x
from the input stream __is
.
__is | An input stream. | |
__x | A discrete_distribution random number generator engine. |
__x
extracted or in an error state.