You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex D Herbert (JIRA)" <ji...@apache.org> on 2019/04/15 14:55:00 UTC
[jira] [Created] (RNG-92) LargeMeanPoissonSampler cannot handle a
mean less than 1
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)