|
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::student_t_distribution< _RealType1 > &__x) |
| bool | operator== (const student_t_distribution &__d1, const student_t_distribution &__d2) |
| template<typename _RealType1 , typename _CharT , typename _Traits > | |
| std::basic_istream< _CharT, _Traits > & | operator>> (std::basic_istream< _CharT, _Traits > &__is, std::student_t_distribution< _RealType1 > &__x) |
A student_t_distribution random number distribution.
The formula for the normal probability mass function is:
![\[
p(x|n) = \frac{1}{\sqrt(n\pi)} \frac{\Gamma((n+1)/2)}{\Gamma(n/2)}
(1 + \frac{x^2}{n}) ^{-(n+1)/2}
\]](form_11.png)