tmp/tmpro8w12ch/{from.md → to.md}
RENAMED
|
@@ -10,27 +10,26 @@ numbers x distributed according to the probability density function $$%
|
|
| 10 |
\cdot \left( 1+\frac{x^2}{n} \right) ^ {-(n+1)/2}
|
| 11 |
\; \mbox{.}$$
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
template<class RealType = double>
|
| 15 |
-
|
| 16 |
-
{
|
| 17 |
public:
|
| 18 |
// types
|
| 19 |
-
|
| 20 |
-
|
| 21 |
|
| 22 |
// constructor and reset functions
|
| 23 |
explicit student_t_distribution(RealType n = 1);
|
| 24 |
explicit student_t_distribution(const param_type& parm);
|
| 25 |
void reset();
|
| 26 |
|
| 27 |
// generating functions
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
|
| 33 |
// property functions
|
| 34 |
RealType n() const;
|
| 35 |
param_type param() const;
|
| 36 |
void param(const param_type& parm);
|
|
|
|
| 10 |
\cdot \left( 1+\frac{x^2}{n} \right) ^ {-(n+1)/2}
|
| 11 |
\; \mbox{.}$$
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
template<class RealType = double>
|
| 15 |
+
class student_t_distribution {
|
|
|
|
| 16 |
public:
|
| 17 |
// types
|
| 18 |
+
using result_type = RealType;
|
| 19 |
+
using param_type = unspecified;
|
| 20 |
|
| 21 |
// constructor and reset functions
|
| 22 |
explicit student_t_distribution(RealType n = 1);
|
| 23 |
explicit student_t_distribution(const param_type& parm);
|
| 24 |
void reset();
|
| 25 |
|
| 26 |
// generating functions
|
| 27 |
+
template<class URBG>
|
| 28 |
+
result_type operator()(URBG& g);
|
| 29 |
+
template<class URBG>
|
| 30 |
+
result_type operator()(URBG& g, const param_type& parm);
|
| 31 |
|
| 32 |
// property functions
|
| 33 |
RealType n() const;
|
| 34 |
param_type param() const;
|
| 35 |
void param(const param_type& parm);
|