tmp/tmpp54fs68k/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,13 @@
|
|
| 1 |
#### Normal distributions <a id="rand.dist.norm">[[rand.dist.norm]]</a>
|
| 2 |
|
| 3 |
##### Class template `normal_distribution` <a id="rand.dist.norm.normal">[[rand.dist.norm.normal]]</a>
|
| 4 |
|
| 5 |
A `normal_distribution` random number distribution produces random
|
| 6 |
-
numbers x distributed according to the probability density function
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
\cdot
|
| 10 |
-
% e^{-(x-\mu)^2 / (2\sigma^2)}
|
| 11 |
-
\exp{\left(- \, \frac{(x - \mu)^2}
|
| 12 |
-
{2 \sigma^2}
|
| 13 |
-
\right)
|
| 14 |
-
}
|
| 15 |
-
\text{ .}$$ The distribution parameters μ and σ are also known as this
|
| 16 |
distribution’s *mean* and *standard deviation*.
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
namespace std {
|
| 20 |
template<class RealType = double>
|
|
@@ -83,13 +76,11 @@ constructed.
|
|
| 83 |
|
| 84 |
##### Class template `lognormal_distribution` <a id="rand.dist.norm.lognormal">[[rand.dist.norm.lognormal]]</a>
|
| 85 |
|
| 86 |
A `lognormal_distribution` random number distribution produces random
|
| 87 |
numbers x > 0 distributed according to the probability density function
|
| 88 |
-
|
| 89 |
-
\cdot \exp{\left(-\frac{(\ln{x} - m)^2}{2 s^2}\right)}
|
| 90 |
-
\text{ .}$$
|
| 91 |
|
| 92 |
``` cpp
|
| 93 |
namespace std {
|
| 94 |
template<class RealType = double>
|
| 95 |
class lognormal_distribution {
|
|
@@ -157,11 +148,11 @@ constructed.
|
|
| 157 |
|
| 158 |
##### Class template `chi_squared_distribution` <a id="rand.dist.norm.chisq">[[rand.dist.norm.chisq]]</a>
|
| 159 |
|
| 160 |
A `chi_squared_distribution` random number distribution produces random
|
| 161 |
numbers x > 0 distributed according to the probability density function
|
| 162 |
-
|
| 163 |
|
| 164 |
``` cpp
|
| 165 |
namespace std {
|
| 166 |
template<class RealType = double>
|
| 167 |
class chi_squared_distribution {
|
|
@@ -219,12 +210,11 @@ RealType n() const;
|
|
| 219 |
constructed.
|
| 220 |
|
| 221 |
##### Class template `cauchy_distribution` <a id="rand.dist.norm.cauchy">[[rand.dist.norm.cauchy]]</a>
|
| 222 |
|
| 223 |
A `cauchy_distribution` random number distribution produces random
|
| 224 |
-
numbers x distributed according to the probability density function
|
| 225 |
-
$$p(x\,|\,a,b) = \left(\pi b \left(1 + \left(\frac{x-a}{b} \right)^2 \, \right)\right)^{-1} \text{ .}$$
|
| 226 |
|
| 227 |
``` cpp
|
| 228 |
namespace std {
|
| 229 |
template<class RealType = double>
|
| 230 |
class cauchy_distribution {
|
|
@@ -292,15 +282,11 @@ constructed.
|
|
| 292 |
|
| 293 |
##### Class template `fisher_f_distribution` <a id="rand.dist.norm.f">[[rand.dist.norm.f]]</a>
|
| 294 |
|
| 295 |
A `fisher_f_distribution` random number distribution produces random
|
| 296 |
numbers x ≥ 0 distributed according to the probability density function
|
| 297 |
-
|
| 298 |
-
\cdot \left(\frac{m}{n}\right)^{m/2}
|
| 299 |
-
\cdot x^{(m/2)-1}
|
| 300 |
-
\cdot \left(1 + \frac{m x}{n}\right)^{-(m + n)/2}
|
| 301 |
-
\text{ .}$$
|
| 302 |
|
| 303 |
``` cpp
|
| 304 |
namespace std {
|
| 305 |
template<class RealType = double>
|
| 306 |
class fisher_f_distribution {
|
|
@@ -367,15 +353,11 @@ RealType n() const;
|
|
| 367 |
constructed.
|
| 368 |
|
| 369 |
##### Class template `student_t_distribution` <a id="rand.dist.norm.t">[[rand.dist.norm.t]]</a>
|
| 370 |
|
| 371 |
A `student_t_distribution` random number distribution produces random
|
| 372 |
-
numbers x distributed according to the probability density function
|
| 373 |
-
$$p(x\,|\,n) = \frac{1}{\sqrt{n \pi}}
|
| 374 |
-
\cdot \frac{\Gamma\big((n+1)/2\big)}{\Gamma(n/2)}
|
| 375 |
-
\cdot \left(1 + \frac{x^2}{n} \right)^{-(n+1)/2}
|
| 376 |
-
\text{ .}$$
|
| 377 |
|
| 378 |
``` cpp
|
| 379 |
namespace std {
|
| 380 |
template<class RealType = double>
|
| 381 |
class student_t_distribution {
|
|
|
|
| 1 |
#### Normal distributions <a id="rand.dist.norm">[[rand.dist.norm]]</a>
|
| 2 |
|
| 3 |
##### Class template `normal_distribution` <a id="rand.dist.norm.normal">[[rand.dist.norm.normal]]</a>
|
| 4 |
|
| 5 |
A `normal_distribution` random number distribution produces random
|
| 6 |
+
numbers x distributed according to the probability density function in .
|
| 7 |
+
|
| 8 |
+
The distribution parameters μ and σ are also known as this
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
distribution’s *mean* and *standard deviation*.
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
namespace std {
|
| 13 |
template<class RealType = double>
|
|
|
|
| 76 |
|
| 77 |
##### Class template `lognormal_distribution` <a id="rand.dist.norm.lognormal">[[rand.dist.norm.lognormal]]</a>
|
| 78 |
|
| 79 |
A `lognormal_distribution` random number distribution produces random
|
| 80 |
numbers x > 0 distributed according to the probability density function
|
| 81 |
+
in .
|
|
|
|
|
|
|
| 82 |
|
| 83 |
``` cpp
|
| 84 |
namespace std {
|
| 85 |
template<class RealType = double>
|
| 86 |
class lognormal_distribution {
|
|
|
|
| 148 |
|
| 149 |
##### Class template `chi_squared_distribution` <a id="rand.dist.norm.chisq">[[rand.dist.norm.chisq]]</a>
|
| 150 |
|
| 151 |
A `chi_squared_distribution` random number distribution produces random
|
| 152 |
numbers x > 0 distributed according to the probability density function
|
| 153 |
+
in .
|
| 154 |
|
| 155 |
``` cpp
|
| 156 |
namespace std {
|
| 157 |
template<class RealType = double>
|
| 158 |
class chi_squared_distribution {
|
|
|
|
| 210 |
constructed.
|
| 211 |
|
| 212 |
##### Class template `cauchy_distribution` <a id="rand.dist.norm.cauchy">[[rand.dist.norm.cauchy]]</a>
|
| 213 |
|
| 214 |
A `cauchy_distribution` random number distribution produces random
|
| 215 |
+
numbers x distributed according to the probability density function in .
|
|
|
|
| 216 |
|
| 217 |
``` cpp
|
| 218 |
namespace std {
|
| 219 |
template<class RealType = double>
|
| 220 |
class cauchy_distribution {
|
|
|
|
| 282 |
|
| 283 |
##### Class template `fisher_f_distribution` <a id="rand.dist.norm.f">[[rand.dist.norm.f]]</a>
|
| 284 |
|
| 285 |
A `fisher_f_distribution` random number distribution produces random
|
| 286 |
numbers x ≥ 0 distributed according to the probability density function
|
| 287 |
+
in .
|
|
|
|
|
|
|
|
|
|
|
|
|
| 288 |
|
| 289 |
``` cpp
|
| 290 |
namespace std {
|
| 291 |
template<class RealType = double>
|
| 292 |
class fisher_f_distribution {
|
|
|
|
| 353 |
constructed.
|
| 354 |
|
| 355 |
##### Class template `student_t_distribution` <a id="rand.dist.norm.t">[[rand.dist.norm.t]]</a>
|
| 356 |
|
| 357 |
A `student_t_distribution` random number distribution produces random
|
| 358 |
+
numbers x distributed according to the probability density function in .
|
|
|
|
|
|
|
|
|
|
|
|
|
| 359 |
|
| 360 |
``` cpp
|
| 361 |
namespace std {
|
| 362 |
template<class RealType = double>
|
| 363 |
class student_t_distribution {
|