From Jason Turner

[rand.dist.pois]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp4qu_y2yn/{from.md → to.md} +11 -17
tmp/tmp4qu_y2yn/{from.md → to.md} RENAMED
@@ -2,17 +2,19 @@
2
 
3
  ##### Class template `poisson_distribution` <a id="rand.dist.pois.poisson">[[rand.dist.pois.poisson]]</a>
4
 
5
  A `poisson_distribution` random number distribution produces integer
6
  values i ≥ 0 distributed according to the discrete probability function
7
- $$P(i\,|\,\mu) = \frac{e^{-\mu} \mu^{i}}{i\,!} \text{ .}$$ The
8
- distribution parameter μ is also known as this distribution’s *mean* .
 
 
9
 
10
  ``` cpp
 
11
  template<class IntType = int>
12
- class poisson_distribution
13
- {
14
  public:
15
  // types
16
  using result_type = IntType;
17
  using param_type = unspecified;
18
 
@@ -44,10 +46,11 @@ template<class IntType = int>
44
  operator<<(basic_ostream<charT, traits>& os, const poisson_distribution& x);
45
  template<class charT, class traits>
46
  friend basic_istream<charT, traits>&
47
  operator>>(basic_istream<charT, traits>& is, poisson_distribution& x);
48
  };
 
49
  ```
50
 
51
  ``` cpp
52
  explicit poisson_distribution(double mean);
53
  ```
@@ -65,11 +68,11 @@ constructed.
65
 
66
  ##### Class template `exponential_distribution` <a id="rand.dist.pois.exp">[[rand.dist.pois.exp]]</a>
67
 
68
  An `exponential_distribution` random number distribution produces random
69
  numbers x > 0 distributed according to the probability density function
70
- $$p(x\,|\,\lambda) = \lambda e^{-\lambda x} \text{ .}$$
71
 
72
  ``` cpp
73
  namespace std {
74
  template<class RealType = double>
75
  class exponential_distribution {
@@ -128,13 +131,11 @@ constructed.
128
 
129
  ##### Class template `gamma_distribution` <a id="rand.dist.pois.gamma">[[rand.dist.pois.gamma]]</a>
130
 
131
  A `gamma_distribution` random number distribution produces random
132
  numbers x > 0 distributed according to the probability density function
133
- $$p(x\,|\,\alpha,\beta) =
134
- \frac{e^{-x/\beta}}{\beta^{\alpha} \cdot \Gamma(\alpha)} \, \cdot \, x^{\, \alpha-1}
135
- \text{ .}$$
136
 
137
  ``` cpp
138
  namespace std {
139
  template<class RealType = double>
140
  class gamma_distribution {
@@ -202,14 +203,11 @@ constructed.
202
 
203
  ##### Class template `weibull_distribution` <a id="rand.dist.pois.weibull">[[rand.dist.pois.weibull]]</a>
204
 
205
  A `weibull_distribution` random number distribution produces random
206
  numbers x ≥ 0 distributed according to the probability density function
207
- $$p(x\,|\,a,b) = \frac{a}{b}
208
- \cdot \left(\frac{x}{b}\right)^{a-1}
209
- \cdot \, \exp\left( -\left(\frac{x}{b}\right)^a\right)
210
- \text{ .}$$
211
 
212
  ``` cpp
213
  namespace std {
214
  template<class RealType = double>
215
  class weibull_distribution {
@@ -277,15 +275,11 @@ constructed.
277
 
278
  ##### Class template `extreme_value_distribution` <a id="rand.dist.pois.extreme">[[rand.dist.pois.extreme]]</a>
279
 
280
  An `extreme_value_distribution` random number distribution produces
281
  random numbers x distributed according to the probability density
282
- function[^7]
283
-
284
- $$p(x\,|\,a,b) = \frac{1}{b}
285
- \cdot \exp\left(\frac{a-x}{b} - \exp\left(\frac{a-x}{b}\right)\right)
286
- \text{ .}$$
287
 
288
  ``` cpp
289
  namespace std {
290
  template<class RealType = double>
291
  class extreme_value_distribution {
 
2
 
3
  ##### Class template `poisson_distribution` <a id="rand.dist.pois.poisson">[[rand.dist.pois.poisson]]</a>
4
 
5
  A `poisson_distribution` random number distribution produces integer
6
  values i ≥ 0 distributed according to the discrete probability function
7
+ in .
8
+
9
+ The distribution parameter μ is also known as this distribution’s
10
+ *mean*.
11
 
12
  ``` cpp
13
+ namespace std {
14
  template<class IntType = int>
15
+ class poisson_distribution {
 
16
  public:
17
  // types
18
  using result_type = IntType;
19
  using param_type = unspecified;
20
 
 
46
  operator<<(basic_ostream<charT, traits>& os, const poisson_distribution& x);
47
  template<class charT, class traits>
48
  friend basic_istream<charT, traits>&
49
  operator>>(basic_istream<charT, traits>& is, poisson_distribution& x);
50
  };
51
+ }
52
  ```
53
 
54
  ``` cpp
55
  explicit poisson_distribution(double mean);
56
  ```
 
68
 
69
  ##### Class template `exponential_distribution` <a id="rand.dist.pois.exp">[[rand.dist.pois.exp]]</a>
70
 
71
  An `exponential_distribution` random number distribution produces random
72
  numbers x > 0 distributed according to the probability density function
73
+ in .
74
 
75
  ``` cpp
76
  namespace std {
77
  template<class RealType = double>
78
  class exponential_distribution {
 
131
 
132
  ##### Class template `gamma_distribution` <a id="rand.dist.pois.gamma">[[rand.dist.pois.gamma]]</a>
133
 
134
  A `gamma_distribution` random number distribution produces random
135
  numbers x > 0 distributed according to the probability density function
136
+ in .
 
 
137
 
138
  ``` cpp
139
  namespace std {
140
  template<class RealType = double>
141
  class gamma_distribution {
 
203
 
204
  ##### Class template `weibull_distribution` <a id="rand.dist.pois.weibull">[[rand.dist.pois.weibull]]</a>
205
 
206
  A `weibull_distribution` random number distribution produces random
207
  numbers x ≥ 0 distributed according to the probability density function
208
+ in .
 
 
 
209
 
210
  ``` cpp
211
  namespace std {
212
  template<class RealType = double>
213
  class weibull_distribution {
 
275
 
276
  ##### Class template `extreme_value_distribution` <a id="rand.dist.pois.extreme">[[rand.dist.pois.extreme]]</a>
277
 
278
  An `extreme_value_distribution` random number distribution produces
279
  random numbers x distributed according to the probability density
280
+ function in .[^7]
 
 
 
 
281
 
282
  ``` cpp
283
  namespace std {
284
  template<class RealType = double>
285
  class extreme_value_distribution {