Alex D Herbert created RNG-92:
---------------------------------
Summary: LargeMeanPoissonSampler cannot handle a mean less than 1
Key: RNG-92
URL: https://issues.apache.org/jira/browse/RNG-92
Project: Commons RNG
Issue Type: Bug
Components: sampling
Affects Versions: 1.3
Reporter: Alex D Herbert
Assignee: Alex D Herbert
The LargeMeanPoissonSampler computes:
{code:java}
lambda = Math.floor(mean);
logLambda = Math.log(lambda);
{code}
So if the mean is less than 1 the logLambda is NaN and other precomputed factors are based on a lambda of zero. This results in infinite loop within the sampler method.
Fix by removing support for a mean less than 1.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)