|
libstdc++
|
A discrete_distribution random number distribution.
The formula for the discrete probability mass function is
| typedef _IntType std::discrete_distribution::result_type |
| result_type std::discrete_distribution::max | ( | ) | const [inline] |
Returns the least upper bound value of the distribution.
Definition at line 4786 of file random.h.
References std::vector::empty(), and std::vector::size().
| result_type std::discrete_distribution::min | ( | ) | const [inline] |
| result_type std::discrete_distribution::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) | [inline] |
Generating functions.
Definition at line 4797 of file random.h.
References operator()(), and param().
Referenced by operator()().
| param_type std::discrete_distribution::param | ( | ) | const [inline] |
Returns the parameter set of the distribution.
Definition at line 4764 of file random.h.
Referenced by operator()(), and std::operator==().
| void std::discrete_distribution::param | ( | const param_type & | __param | ) | [inline] |
| std::vector<double> std::discrete_distribution::probabilities | ( | ) | const [inline] |
Returns the probabilities of the distribution.
Definition at line 4754 of file random.h.
References std::vector::empty().
| void std::discrete_distribution::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.