tmp/tmpubu6_e62/{from.md → to.md}
RENAMED
|
@@ -18,10 +18,13 @@ template<class IntType = int>
|
|
| 18 |
poisson_distribution() : poisson_distribution(1.0) {}
|
| 19 |
explicit poisson_distribution(double mean);
|
| 20 |
explicit poisson_distribution(const param_type& parm);
|
| 21 |
void reset();
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
// generating functions
|
| 24 |
template<class URBG>
|
| 25 |
result_type operator()(URBG& g);
|
| 26 |
template<class URBG>
|
| 27 |
result_type operator()(URBG& g, const param_type& parm);
|
|
@@ -30,10 +33,18 @@ template<class IntType = int>
|
|
| 30 |
double mean() const;
|
| 31 |
param_type param() const;
|
| 32 |
void param(const param_type& parm);
|
| 33 |
result_type min() const;
|
| 34 |
result_type max() const;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
};
|
| 36 |
```
|
| 37 |
|
| 38 |
``` cpp
|
| 39 |
explicit poisson_distribution(double mean);
|
|
|
|
| 18 |
poisson_distribution() : poisson_distribution(1.0) {}
|
| 19 |
explicit poisson_distribution(double mean);
|
| 20 |
explicit poisson_distribution(const param_type& parm);
|
| 21 |
void reset();
|
| 22 |
|
| 23 |
+
// equality operators
|
| 24 |
+
friend bool operator==(const poisson_distribution& x, const poisson_distribution& y);
|
| 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);
|
|
|
|
| 33 |
double mean() const;
|
| 34 |
param_type param() const;
|
| 35 |
void param(const param_type& parm);
|
| 36 |
result_type min() const;
|
| 37 |
result_type max() const;
|
| 38 |
+
|
| 39 |
+
// inserters and extractors
|
| 40 |
+
template<class charT, class traits>
|
| 41 |
+
friend basic_ostream<charT, traits>&
|
| 42 |
+
operator<<(basic_ostream<charT, traits>& os, const poisson_distribution& x);
|
| 43 |
+
template<class charT, class traits>
|
| 44 |
+
friend basic_istream<charT, traits>&
|
| 45 |
+
operator>>(basic_istream<charT, traits>& is, poisson_distribution& x);
|
| 46 |
};
|
| 47 |
```
|
| 48 |
|
| 49 |
``` cpp
|
| 50 |
explicit poisson_distribution(double mean);
|