tmp/tmp_ft7ylks/{from.md → to.md}
RENAMED
|
@@ -13,27 +13,26 @@ numbers x distributed according to the probability density function $$%
|
|
| 13 |
\; \mbox{.}$$ The distribution parameters μ and σ are also known as this
|
| 14 |
distribution’s *mean* and *standard deviation* .
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
template<class RealType = double>
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
public:
|
| 21 |
// types
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
// constructors and reset functions
|
| 26 |
explicit normal_distribution(RealType mean = 0.0, RealType stddev = 1.0);
|
| 27 |
explicit normal_distribution(const param_type& parm);
|
| 28 |
void reset();
|
| 29 |
|
| 30 |
// generating functions
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
// property functions
|
| 37 |
RealType mean() const;
|
| 38 |
RealType stddev() const;
|
| 39 |
param_type param() const;
|
|
|
|
| 13 |
\; \mbox{.}$$ The distribution parameters μ and σ are also known as this
|
| 14 |
distribution’s *mean* and *standard deviation* .
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
template<class RealType = double>
|
| 18 |
+
class normal_distribution {
|
|
|
|
| 19 |
public:
|
| 20 |
// types
|
| 21 |
+
using result_type = RealType;
|
| 22 |
+
using param_type = unspecified;
|
| 23 |
|
| 24 |
// constructors and reset functions
|
| 25 |
explicit normal_distribution(RealType mean = 0.0, RealType stddev = 1.0);
|
| 26 |
explicit normal_distribution(const param_type& parm);
|
| 27 |
void reset();
|
| 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);
|
| 34 |
|
| 35 |
// property functions
|
| 36 |
RealType mean() const;
|
| 37 |
RealType stddev() const;
|
| 38 |
param_type param() const;
|