tmp/tmpl2in_a83/{from.md → to.md}
RENAMED
|
@@ -7,10 +7,11 @@ $$p(x\,|\,m,n) = \frac{\Gamma\big((m+n)/2\big)}{\Gamma(m/2) \; \Gamma(n/2)}
|
|
| 7 |
\cdot x^{(m/2)-1}
|
| 8 |
\cdot \left(1 + \frac{m x}{n}\right)^{-(m + n)/2}
|
| 9 |
\text{ .}$$
|
| 10 |
|
| 11 |
``` cpp
|
|
|
|
| 12 |
template<class RealType = double>
|
| 13 |
class fisher_f_distribution {
|
| 14 |
public:
|
| 15 |
// types
|
| 16 |
using result_type = RealType;
|
|
@@ -20,10 +21,13 @@ template<class RealType = double>
|
|
| 20 |
fisher_f_distribution() : fisher_f_distribution(1.0) {}
|
| 21 |
explicit fisher_f_distribution(RealType m, RealType n = 1.0);
|
| 22 |
explicit fisher_f_distribution(const param_type& parm);
|
| 23 |
void reset();
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
// generating functions
|
| 26 |
template<class URBG>
|
| 27 |
result_type operator()(URBG& g);
|
| 28 |
template<class URBG>
|
| 29 |
result_type operator()(URBG& g, const param_type& parm);
|
|
@@ -33,11 +37,20 @@ template<class RealType = double>
|
|
| 33 |
RealType n() const;
|
| 34 |
param_type param() const;
|
| 35 |
void param(const param_type& parm);
|
| 36 |
result_type min() const;
|
| 37 |
result_type max() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
};
|
|
|
|
| 39 |
```
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
explicit fisher_f_distribution(RealType m, RealType n = 1);
|
| 43 |
```
|
|
|
|
| 7 |
\cdot x^{(m/2)-1}
|
| 8 |
\cdot \left(1 + \frac{m x}{n}\right)^{-(m + n)/2}
|
| 9 |
\text{ .}$$
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
+
namespace std {
|
| 13 |
template<class RealType = double>
|
| 14 |
class fisher_f_distribution {
|
| 15 |
public:
|
| 16 |
// types
|
| 17 |
using result_type = RealType;
|
|
|
|
| 21 |
fisher_f_distribution() : fisher_f_distribution(1.0) {}
|
| 22 |
explicit fisher_f_distribution(RealType m, RealType n = 1.0);
|
| 23 |
explicit fisher_f_distribution(const param_type& parm);
|
| 24 |
void reset();
|
| 25 |
|
| 26 |
+
// equality operators
|
| 27 |
+
friend bool operator==(const fisher_f_distribution& x, const fisher_f_distribution& y);
|
| 28 |
+
|
| 29 |
// generating functions
|
| 30 |
template<class URBG>
|
| 31 |
result_type operator()(URBG& g);
|
| 32 |
template<class URBG>
|
| 33 |
result_type operator()(URBG& g, const param_type& parm);
|
|
|
|
| 37 |
RealType n() const;
|
| 38 |
param_type param() const;
|
| 39 |
void param(const param_type& parm);
|
| 40 |
result_type min() const;
|
| 41 |
result_type max() const;
|
| 42 |
+
|
| 43 |
+
// inserters and extractors
|
| 44 |
+
template<class charT, class traits>
|
| 45 |
+
friend basic_ostream<charT, traits>&
|
| 46 |
+
operator<<(basic_ostream<charT, traits>& os, const fisher_f_distribution& x);
|
| 47 |
+
template<class charT, class traits>
|
| 48 |
+
friend basic_istream<charT, traits>&
|
| 49 |
+
operator>>(basic_istream<charT, traits>& is, fisher_f_distribution& x);
|
| 50 |
};
|
| 51 |
+
}
|
| 52 |
```
|
| 53 |
|
| 54 |
``` cpp
|
| 55 |
explicit fisher_f_distribution(RealType m, RealType n = 1);
|
| 56 |
```
|