tmp/tmpuotyrf1g/{from.md → to.md}
RENAMED
|
@@ -59,11 +59,11 @@ constructed.
|
|
| 59 |
|
| 60 |
A `binomial_distribution` random number distribution produces integer
|
| 61 |
values i ≥ 0 distributed according to the discrete probability function
|
| 62 |
$$%
|
| 63 |
P(i\,|\,t,p)
|
| 64 |
-
= {t
|
| 65 |
\; \mbox{.}$$
|
| 66 |
|
| 67 |
``` cpp
|
| 68 |
template<class IntType = int>
|
| 69 |
class binomial_distribution
|
|
@@ -175,11 +175,11 @@ constructed.
|
|
| 175 |
|
| 176 |
A `negative_binomial_distribution` random number distribution produces
|
| 177 |
random integers i ≥ 0 distributed according to the discrete probability
|
| 178 |
function $$%
|
| 179 |
P(i\,|\,k,p)
|
| 180 |
-
= {k+i-1
|
| 181 |
\; \mbox{.}$$
|
| 182 |
|
| 183 |
``` cpp
|
| 184 |
template<class IntType = int>
|
| 185 |
class negative_binomial_distribution
|
|
|
|
| 59 |
|
| 60 |
A `binomial_distribution` random number distribution produces integer
|
| 61 |
values i ≥ 0 distributed according to the discrete probability function
|
| 62 |
$$%
|
| 63 |
P(i\,|\,t,p)
|
| 64 |
+
= \binom{t}{i} \cdot p^i \cdot (1-p)^{t-i}
|
| 65 |
\; \mbox{.}$$
|
| 66 |
|
| 67 |
``` cpp
|
| 68 |
template<class IntType = int>
|
| 69 |
class binomial_distribution
|
|
|
|
| 175 |
|
| 176 |
A `negative_binomial_distribution` random number distribution produces
|
| 177 |
random integers i ≥ 0 distributed according to the discrete probability
|
| 178 |
function $$%
|
| 179 |
P(i\,|\,k,p)
|
| 180 |
+
= \binom{k+i-1}{i} \cdot p^k \cdot (1-p)^i
|
| 181 |
\; \mbox{.}$$
|
| 182 |
|
| 183 |
``` cpp
|
| 184 |
template<class IntType = int>
|
| 185 |
class negative_binomial_distribution
|