Affects Version/s: 3.2
Fix Version/s: 3.3
Here's a tiny bug I noticed via static inspection, since it flagged the integer division. PoissonDistribution.java:325 says:
The "1 / 8 * lambda" is evidently incorrect, since this will always evaluate to 0. I rechecked the original algorithm (http://luc.devroye.org/devroye-poisson.pdf) and it should instead be:
(lambda is a double so there is no int division issue.) This matches a later expression.
I'm not sure how to evaluate the effect of the bug. Better to be correct of course; it may never have made much practical difference.