[
https://issues.apache.org/jira/browse/RNG-149?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Herbert resolved RNG-149.
------------------------------
Fix Version/s: 1.4
Resolution: Implemented
Added in commit:
34117b8fec244931274fd2c4950e5db481951aa6
> 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
> Priority: Major
> Fix For: 1.4
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)