tmp/tmptg6m7ax1/{from.md → to.md}
RENAMED
|
@@ -13,23 +13,23 @@ distribution’s *mean* .
|
|
| 13 |
template<class IntType = int>
|
| 14 |
class poisson_distribution
|
| 15 |
{
|
| 16 |
public:
|
| 17 |
// types
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
// constructors and reset functions
|
| 22 |
explicit poisson_distribution(double mean = 1.0);
|
| 23 |
explicit poisson_distribution(const param_type& parm);
|
| 24 |
void reset();
|
| 25 |
|
| 26 |
// generating functions
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
// property functions
|
| 33 |
double mean() const;
|
| 34 |
param_type param() const;
|
| 35 |
void param(const param_type& parm);
|
|
|
|
| 13 |
template<class IntType = int>
|
| 14 |
class poisson_distribution
|
| 15 |
{
|
| 16 |
public:
|
| 17 |
// types
|
| 18 |
+
using result_type = IntType;
|
| 19 |
+
using param_type = unspecified;
|
| 20 |
|
| 21 |
// constructors and reset functions
|
| 22 |
explicit poisson_distribution(double mean = 1.0);
|
| 23 |
explicit poisson_distribution(const param_type& parm);
|
| 24 |
void reset();
|
| 25 |
|
| 26 |
// generating functions
|
| 27 |
+
template<class URBG>
|
| 28 |
+
result_type operator()(URBG& g);
|
| 29 |
+
template<class URBG>
|
| 30 |
+
result_type operator()(URBG& g, const param_type& parm);
|
| 31 |
|
| 32 |
// property functions
|
| 33 |
double mean() const;
|
| 34 |
param_type param() const;
|
| 35 |
void param(const param_type& parm);
|