From Jason Turner

[rand.dist.bern.bin]

Diff to HTML by rtfpessoa

tmp/tmp039y4hk2/{from.md → to.md} RENAMED
@@ -2,11 +2,11 @@
2
 
3
  A `binomial_distribution` random number distribution produces integer
4
  values i ≥ 0 distributed according to the discrete probability function
5
  $$%
6
  P(i\,|\,t,p)
7
- = {t \choose i} \cdot p^i \cdot (1-p)^{t-i}
8
  \; \mbox{.}$$
9
 
10
  ``` cpp
11
  template<class IntType = int>
12
  class binomial_distribution
 
2
 
3
  A `binomial_distribution` random number distribution produces integer
4
  values i ≥ 0 distributed according to the discrete probability function
5
  $$%
6
  P(i\,|\,t,p)
7
+ = \binom{t}{i} \cdot p^i \cdot (1-p)^{t-i}
8
  \; \mbox{.}$$
9
 
10
  ``` cpp
11
  template<class IntType = int>
12
  class binomial_distribution