|
libstdc++
|
#include <random.h>
Classes | |
| struct | param_type |
Public Types | |
| typedef _RealType | result_type |
Friends | |
| template<typename _RealType1 , typename _CharT , typename _Traits > | |
| std::basic_ostream< _CharT, _Traits > & | operator<< (std::basic_ostream< _CharT, _Traits > &__os, const std::normal_distribution< _RealType1 > &__x) |
| template<typename _RealType1 > | |
| bool | operator== (const std::normal_distribution< _RealType1 > &__d1, const std::normal_distribution< _RealType1 > &__d2) |
| template<typename _RealType1 , typename _CharT , typename _Traits > | |
| std::basic_istream< _CharT, _Traits > & | operator>> (std::basic_istream< _CharT, _Traits > &__is, std::normal_distribution< _RealType1 > &__x) |
A normal continuous distribution for random numbers.
The formula for the normal probability density function is
![\[
p(x|\mu,\sigma) = \frac{1}{\sigma \sqrt{2 \pi}}
e^{- \frac{{x - \mu}^ {2}}{2 \sigma ^ {2}} }
\]](form_5.png)