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

Alex Herbert reopened RNG-149:
------------------------------
      Assignee: Alex Herbert

This sampler has been superceded by the modified ziggurat sampler. See RNG-151.

Since this is unreleased code it can be removed from the main code and moved to 
the example package for performance comparisons.

 

> 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
>            Assignee: 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)

Reply via email to