From Jason Turner

[rand.dist.bern.negbin]

Diff to HTML by rtfpessoa

tmp/tmptd0zkaf1/{from.md → to.md} RENAMED
@@ -2,11 +2,11 @@
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)
7
- = {k+i-1 \choose i} \cdot p^k \cdot (1-p)^i
8
  \; \mbox{.}$$
9
 
10
  ``` cpp
11
  template<class IntType = int>
12
  class negative_binomial_distribution
 
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)
7
+ = \binom{k+i-1}{i} \cdot p^k \cdot (1-p)^i
8
  \; \mbox{.}$$
9
 
10
  ``` cpp
11
  template<class IntType = int>
12
  class negative_binomial_distribution