Skip to content

Commit

Permalink
DOC: add reference to poisson rng
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
juliantaylor committed Jun 13, 2016
1 parent 9d3f475 commit 69fb4f1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions numpy/random/mtrand/distributions.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 69fb4f1

Please sign in to comment.