From Jason Turner

[rand.dist.norm.f]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp0wssoa58/{from.md → to.md} +11 -16
tmp/tmp0wssoa58/{from.md → to.md} RENAMED
@@ -1,31 +1,26 @@
1
  ##### Class template `fisher_f_distribution` <a id="rand.dist.norm.f">[[rand.dist.norm.f]]</a>
2
 
3
  A `fisher_f_distribution` random number distribution produces random
4
  numbers x ≥ 0 distributed according to the probability density function
5
- $$%
6
- p(x\,|\,m,n)
7
- = \frac{\Gamma\big((m+n)/2\big)}
8
- {\Gamma(m/2) \; \Gamma(n/2)}
9
- \cdot
10
- \left(\frac{m}{n}\right)^{m/2}
11
- \cdot
12
- x^{(m/2)-1}
13
- \cdot
14
- {\left( 1 + \frac{m x}{n} \right)}^{-(m+n)/2}
15
- \; \mbox{.}$$
16
 
17
  ``` cpp
18
  template<class RealType = double>
19
  class fisher_f_distribution {
20
  public:
21
  // types
22
  using result_type = RealType;
23
  using param_type = unspecified;
24
 
25
  // constructor and reset functions
26
- explicit fisher_f_distribution(RealType m = 1, RealType n = 1);
 
27
  explicit fisher_f_distribution(const param_type& parm);
28
  void reset();
29
 
30
  // generating functions
31
  template<class URBG>
@@ -42,17 +37,17 @@ template<class RealType = double>
42
  result_type max() const;
43
  };
44
  ```
45
 
46
  ``` cpp
47
- explicit fisher_f_distribution(RealType m = 1, RealType n = 1);
48
  ```
49
 
50
- *Requires:* 0 < `m` and 0 < `n`.
51
 
52
- *Effects:* Constructs a `fisher_f_distribution` object; `m` and `n`
53
- correspond to the respective parameters of the distribution.
54
 
55
  ``` cpp
56
  RealType m() const;
57
  ```
58
 
 
1
  ##### Class template `fisher_f_distribution` <a id="rand.dist.norm.f">[[rand.dist.norm.f]]</a>
2
 
3
  A `fisher_f_distribution` random number distribution produces random
4
  numbers x ≥ 0 distributed according to the probability density function
5
+ $$p(x\,|\,m,n) = \frac{\Gamma\big((m+n)/2\big)}{\Gamma(m/2) \; \Gamma(n/2)}
6
+ \cdot \left(\frac{m}{n}\right)^{m/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;
17
  using param_type = unspecified;
18
 
19
  // constructor and reset functions
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>
 
37
  result_type max() const;
38
  };
39
  ```
40
 
41
  ``` cpp
42
+ explicit fisher_f_distribution(RealType m, RealType n = 1);
43
  ```
44
 
45
+ *Preconditions:* 0 < `m` and 0 < `n`.
46
 
47
+ *Remarks:* `m` and `n` correspond to the respective parameters of the
48
+ distribution.
49
 
50
  ``` cpp
51
  RealType m() const;
52
  ```
53