tmp/tmpixau14_p/{from.md → to.md}
RENAMED
|
@@ -114,13 +114,11 @@ constructed.
|
|
| 114 |
|
| 115 |
A `gamma_distribution` random number distribution produces random
|
| 116 |
numbers x > 0 distributed according to the probability density function
|
| 117 |
$$%
|
| 118 |
p(x\,|\,\alpha,\beta)
|
| 119 |
-
= {
|
| 120 |
-
\over {\beta^{\alpha} \cdot \Gamma(\alpha)}
|
| 121 |
-
}
|
| 122 |
\, \cdot \, x^{\, \alpha-1}
|
| 123 |
\; \mbox{.}$$
|
| 124 |
|
| 125 |
``` cpp
|
| 126 |
template<class RealType = double>
|
|
@@ -194,11 +192,11 @@ public:
|
|
| 194 |
// types
|
| 195 |
typedef RealType result_type;
|
| 196 |
typedef unspecified param_type;
|
| 197 |
|
| 198 |
// constructor and reset functions
|
| 199 |
-
explicit weibull_distribution(RealType a = 1.0, RealType b = 1.0)
|
| 200 |
explicit weibull_distribution(const param_type& parm);
|
| 201 |
void reset();
|
| 202 |
|
| 203 |
// generating functions
|
| 204 |
template<class URNG>
|
|
|
|
| 114 |
|
| 115 |
A `gamma_distribution` random number distribution produces random
|
| 116 |
numbers x > 0 distributed according to the probability density function
|
| 117 |
$$%
|
| 118 |
p(x\,|\,\alpha,\beta)
|
| 119 |
+
= \frac{e^{-x/\beta}}{\beta^{\alpha} \cdot \Gamma(\alpha)}
|
|
|
|
|
|
|
| 120 |
\, \cdot \, x^{\, \alpha-1}
|
| 121 |
\; \mbox{.}$$
|
| 122 |
|
| 123 |
``` cpp
|
| 124 |
template<class RealType = double>
|
|
|
|
| 192 |
// types
|
| 193 |
typedef RealType result_type;
|
| 194 |
typedef unspecified param_type;
|
| 195 |
|
| 196 |
// constructor and reset functions
|
| 197 |
+
explicit weibull_distribution(RealType a = 1.0, RealType b = 1.0);
|
| 198 |
explicit weibull_distribution(const param_type& parm);
|
| 199 |
void reset();
|
| 200 |
|
| 201 |
// generating functions
|
| 202 |
template<class URNG>
|