|
libstdc++
|
A discrete_distribution random number distribution.
The formula for the discrete probability mass function is
| 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 4793 of file random.h.
References std::vector< _Tp, _Alloc >::empty(), and 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 4804 of file random.h.
References std::discrete_distribution< _IntType >::operator()(), and std::discrete_distribution< _IntType >::param().
Referenced by std::discrete_distribution< _IntType >::operator()().
| param_type std::discrete_distribution< _IntType >::param | ( | ) | const [inline] |
Returns the parameter set of the distribution.
Definition at line 4771 of file random.h.
Referenced by std::discrete_distribution< _IntType >::operator()(), and std::operator==().
| void std::discrete_distribution< _IntType >::param | ( | const param_type & | __param | ) | [inline] |
| std::vector<double> std::discrete_distribution< _IntType >::probabilities | ( | ) | const [inline] |
Returns the probabilities of the distribution.
Definition at line 4761 of file random.h.
References std::vector< _Tp, _Alloc >::empty().
| void std::discrete_distribution< _IntType >::reset | ( | ) | [inline] |
| std::basic_ostream<_CharT, _Traits>& operator<< | ( | std::basic_ostream< _CharT, _Traits > & | __os, |
| const std::discrete_distribution< _IntType1 > & | __x | ||
| ) | [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 > & | __is, |
| std::discrete_distribution< _IntType1 > & | __x | ||
| ) | [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.