tmp/tmpyru96zka/{from.md → to.md}
RENAMED
|
@@ -8,27 +8,26 @@ $$%
|
|
| 8 |
\, \cdot \, x^{\, \alpha-1}
|
| 9 |
\; \mbox{.}$$
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
template<class RealType = double>
|
| 13 |
-
|
| 14 |
-
{
|
| 15 |
public:
|
| 16 |
// types
|
| 17 |
-
|
| 18 |
-
|
| 19 |
|
| 20 |
// constructors and reset functions
|
| 21 |
explicit gamma_distribution(RealType alpha = 1.0, RealType beta = 1.0);
|
| 22 |
explicit gamma_distribution(const param_type& parm);
|
| 23 |
void reset();
|
| 24 |
|
| 25 |
// generating functions
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
|
| 31 |
// property functions
|
| 32 |
RealType alpha() const;
|
| 33 |
RealType beta() const;
|
| 34 |
param_type param() const;
|
|
|
|
| 8 |
\, \cdot \, x^{\, \alpha-1}
|
| 9 |
\; \mbox{.}$$
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
template<class RealType = double>
|
| 13 |
+
class gamma_distribution {
|
|
|
|
| 14 |
public:
|
| 15 |
// types
|
| 16 |
+
using result_type = RealType;
|
| 17 |
+
using param_type = unspecified;
|
| 18 |
|
| 19 |
// constructors and reset functions
|
| 20 |
explicit gamma_distribution(RealType alpha = 1.0, RealType beta = 1.0);
|
| 21 |
explicit gamma_distribution(const param_type& parm);
|
| 22 |
void reset();
|
| 23 |
|
| 24 |
// generating functions
|
| 25 |
+
template<class URBG>
|
| 26 |
+
result_type operator()(URBG& g);
|
| 27 |
+
template<class URBG>
|
| 28 |
+
result_type operator()(URBG& g, const param_type& parm);
|
| 29 |
|
| 30 |
// property functions
|
| 31 |
RealType alpha() const;
|
| 32 |
RealType beta() const;
|
| 33 |
param_type param() const;
|