tmp/tmpsqa2b63g/{from.md → to.md}
RENAMED
|
@@ -1,16 +1,18 @@
|
|
| 1 |
##### Class template `poisson_distribution` <a id="rand.dist.pois.poisson">[[rand.dist.pois.poisson]]</a>
|
| 2 |
|
| 3 |
A `poisson_distribution` random number distribution produces integer
|
| 4 |
values i ≥ 0 distributed according to the discrete probability function
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
| 7 |
|
| 8 |
``` cpp
|
|
|
|
| 9 |
template<class IntType = int>
|
| 10 |
-
class poisson_distribution
|
| 11 |
-
{
|
| 12 |
public:
|
| 13 |
// types
|
| 14 |
using result_type = IntType;
|
| 15 |
using param_type = unspecified;
|
| 16 |
|
|
@@ -42,10 +44,11 @@ template<class IntType = int>
|
|
| 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);
|
| 51 |
```
|
|
|
|
| 1 |
##### Class template `poisson_distribution` <a id="rand.dist.pois.poisson">[[rand.dist.pois.poisson]]</a>
|
| 2 |
|
| 3 |
A `poisson_distribution` random number distribution produces integer
|
| 4 |
values i ≥ 0 distributed according to the discrete probability function
|
| 5 |
+
in .
|
| 6 |
+
|
| 7 |
+
The distribution parameter μ is also known as this distribution’s
|
| 8 |
+
*mean*.
|
| 9 |
|
| 10 |
``` cpp
|
| 11 |
+
namespace std {
|
| 12 |
template<class IntType = int>
|
| 13 |
+
class poisson_distribution {
|
|
|
|
| 14 |
public:
|
| 15 |
// types
|
| 16 |
using result_type = IntType;
|
| 17 |
using param_type = unspecified;
|
| 18 |
|
|
|
|
| 44 |
operator<<(basic_ostream<charT, traits>& os, const poisson_distribution& x);
|
| 45 |
template<class charT, class traits>
|
| 46 |
friend basic_istream<charT, traits>&
|
| 47 |
operator>>(basic_istream<charT, traits>& is, poisson_distribution& x);
|
| 48 |
};
|
| 49 |
+
}
|
| 50 |
```
|
| 51 |
|
| 52 |
``` cpp
|
| 53 |
explicit poisson_distribution(double mean);
|
| 54 |
```
|