[ 
https://issues.apache.org/jira/browse/RNG-201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Herbert resolved RNG-201.
------------------------------
    Fix Version/s: 1.8
         Assignee: Alex Herbert
       Resolution: Fixed

Updated to validate the max mean parameter when constructing the cache is 
within the support of the Poisson sampler.

Changes in commit:

c961b76e7109cc40216b4f46d49b28c3d5fdd3c2

> PoissonSamperCache can accept a max mean above the supported range of the 
> PoissonSampler
> ----------------------------------------------------------------------------------------
>
>                 Key: RNG-201
>                 URL: https://issues.apache.org/jira/browse/RNG-201
>             Project: Commons RNG
>          Issue Type: Bug
>          Components: sampling
>    Affects Versions: 1.7
>            Reporter: Alex Herbert
>            Assignee: Alex Herbert
>            Priority: Trivial
>             Fix For: 1.8
>
>
> The PoissonSamperCache has a supported max mean of Integer.MAX_VALUE.
> The LargeMeanPoissonSampler has a supported max mean of 0.5 * 
> Integer.MAX_VALUE.
> The result is the cache can be constructed with storage allocated for 
> samplers that cannot be created.
> Note: Since the mean is validated when a PoissonSampler is created the cache 
> cannot be used with a mean above this max. The fix is to align the maximum of 
> the PoissonSamplerCache with the maximum of the PoissonSampler.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to