summaryrefslogtreecommitdiff
path: root/numpy/random
diff options
context:
space:
mode:
authorJulian Taylor <jtaylor.debian@googlemail.com>2016-06-13 17:56:00 +0200
committerJulian Taylor <jtaylor.debian@googlemail.com>2016-06-13 19:40:37 +0200
commit69fb4f160518ac347efc63dc17ebdf81285c1958 (patch)
treed34693ff76a6188a50c0e3fe034f29b114a7bcdd /numpy/random
parent9d3f4757fe7600efc9c77aa945bea9476fa9dcd0 (diff)
downloadnumpy-69fb4f160518ac347efc63dc17ebdf81285c1958.tar.gz
DOC: add reference to poisson rng
[ci skip]
Diffstat (limited to 'numpy/random')
-rw-r--r--numpy/random/mtrand/distributions.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/random/mtrand/distributions.c b/numpy/random/mtrand/distributions.c
index 7c44088a7..e195700d4 100644
--- a/numpy/random/mtrand/distributions.c
+++ b/numpy/random/mtrand/distributions.c
@@ -500,6 +500,11 @@ long rk_poisson_mult(rk_state *state, double lam)
}
}
+/*
+ * The transformed rejection method for generating Poisson random variables
+ * W. Hoermann
+ * Insurance: Mathematics and Economics 12, 39-45 (1993)
+ */
#define LS2PI 0.91893853320467267
#define TWELFTH 0.083333333333333333333333
long rk_poisson_ptrs(rk_state *state, double lam)