Alex Herbert created RNG-201:
--------------------------------
Summary: 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
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)