tmp/tmpsys075gu/{from.md → to.md}
RENAMED
|
@@ -13,27 +13,26 @@ $$%
|
|
| 13 |
}
|
| 14 |
\; \mbox{.}$$
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
template<class RealType = double>
|
| 18 |
-
|
| 19 |
-
{
|
| 20 |
public:
|
| 21 |
// types
|
| 22 |
-
|
| 23 |
-
|
| 24 |
|
| 25 |
// constructor and reset functions
|
| 26 |
explicit lognormal_distribution(RealType m = 0.0, RealType s = 1.0);
|
| 27 |
explicit lognormal_distribution(const param_type& parm);
|
| 28 |
void reset();
|
| 29 |
|
| 30 |
// generating functions
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
|
| 36 |
// property functions
|
| 37 |
RealType m() const;
|
| 38 |
RealType s() const;
|
| 39 |
param_type param() const;
|
|
|
|
| 13 |
}
|
| 14 |
\; \mbox{.}$$
|
| 15 |
|
| 16 |
``` cpp
|
| 17 |
template<class RealType = double>
|
| 18 |
+
class lognormal_distribution {
|
|
|
|
| 19 |
public:
|
| 20 |
// types
|
| 21 |
+
using result_type = RealType;
|
| 22 |
+
using param_type = unspecified;
|
| 23 |
|
| 24 |
// constructor and reset functions
|
| 25 |
explicit lognormal_distribution(RealType m = 0.0, RealType s = 1.0);
|
| 26 |
explicit lognormal_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 m() const;
|
| 37 |
RealType s() const;
|
| 38 |
param_type param() const;
|