.
Definition at line 2196 of file random.
| std::tr1::normal_distribution< _RealType >::normal_distribution | ( | const result_type & | __mean = result_type(0), |
|
| const result_type & | __sigma = result_type(1) | |||
| ) | [inline, explicit] |
Constructs a normal distribution with parameters
and
.
Definition at line 2209 of file random.
References _GLIBCXX_DEBUG_ASSERT.
| _RealType std::tr1::normal_distribution< _RealType >::mean | ( | ) | const [inline] |
| normal_distribution< _RealType >::result_type std::tr1::normal_distribution< _RealType >::operator() | ( | _UniformRandomNumberGenerator & | __urng | ) |
Polar method due to Marsaglia.
Devroye, L. "Non-Uniform Random Variates Generation." Springer-Verlag, New York, 1986, Ch. V, Sect. 4.4.
Definition at line 1360 of file random.tcc.
References std::log(), and std::sqrt().
| void std::tr1::normal_distribution< _RealType >::reset | ( | ) | [inline] |
| _RealType std::tr1::normal_distribution< _RealType >::sigma | ( | ) | const [inline] |
| std::basic_ostream<_CharT, _Traits>& operator<< | ( | std::basic_ostream< _CharT, _Traits > & | __os, | |
| const normal_distribution< _RealType1 > & | __x | |||
| ) | [friend] |
Inserts a normal_distribution random number distribution __x into the output stream __os.
| __os | An output stream. | |
| __x | A normal_distribution random number distribution. |
__x inserted or in an error state. | std::basic_istream<_CharT, _Traits>& operator>> | ( | std::basic_istream< _CharT, _Traits > & | __is, | |
| normal_distribution< _RealType1 > & | __x | |||
| ) | [friend] |
Extracts a normal_distribution random number distribution __x from the input stream __is.
| __is | An input stream. | |
| __x | A normal_distribution random number generator engine. |
__x extracted or in an error state.
1.5.1