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 Herbert (Jira)" <ji...@apache.org> on 2021/07/02 12:44:00 UTC
[jira] [Created] (RNG-149) ZigguratExponentialSampler
Alex Herbert created RNG-149:
--------------------------------
Summary: ZigguratExponentialSampler
Key: RNG-149
URL: https://issues.apache.org/jira/browse/RNG-149
Project: Commons RNG
Issue Type: New Feature
Components: sampling
Affects Versions: 1.4
Reporter: Alex Herbert
The paper describing the ZigguratNormalizedGaussianSampler also provides code for sampling from an exponential distribution.
{code:java}
public class ZigguratExponentialSampler implements SharedStateContinuousSampler {
public ZigguratExponentialSampler
withUniformRandomProvider(UniformRandomProvider rng);
public static ZigguratExponentialSampler of(UniformRandomProvider rng);
public static ZigguratExponentialSampler of(UniformRandomProvider rng, double mean);
}
{code}
I suggest allowing creation of a sampler with mean 1. This special case has application in other samplers, for example the LargeMeanPoissonSampler.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)