tmp/tmpzpm4vm18/{from.md → to.md}
RENAMED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
##### Class template `negative_binomial_distribution` <a id="rand.dist.bern.negbin">[[rand.dist.bern.negbin]]</a>
|
| 2 |
|
| 3 |
A `negative_binomial_distribution` random number distribution produces
|
| 4 |
random integers i ≥ 0 distributed according to the discrete probability
|
| 5 |
-
function
|
| 6 |
-
$$P(i\,|\,k,p) = \binom{k+i-1}{i} \cdot p^k \cdot (1-p)^i \text{ .}$$
|
| 7 |
|
| 8 |
[*Note 1*: This implies that P(i | k,p) is undefined when
|
| 9 |
`p == 1`. — *end note*]
|
| 10 |
|
| 11 |
``` cpp
|
|
|
|
| 1 |
##### Class template `negative_binomial_distribution` <a id="rand.dist.bern.negbin">[[rand.dist.bern.negbin]]</a>
|
| 2 |
|
| 3 |
A `negative_binomial_distribution` random number distribution produces
|
| 4 |
random integers i ≥ 0 distributed according to the discrete probability
|
| 5 |
+
function in .
|
|
|
|
| 6 |
|
| 7 |
[*Note 1*: This implies that P(i | k,p) is undefined when
|
| 8 |
`p == 1`. — *end note*]
|
| 9 |
|
| 10 |
``` cpp
|