Uploaded image for project: 'Commons RNG'
  1. Commons RNG
  2. RNG-149

ZigguratExponentialSampler

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • 1.4
    • 1.4
    • sampling
    • None

    Description

      The paper describing the ZigguratNormalizedGaussianSampler also provides code for sampling from an exponential distribution.

      public class ZigguratExponentialSampler implements SharedStateContinuousSampler {
          public ZigguratExponentialSampler
              withUniformRandomProvider(UniformRandomProvider rng);
          public static ZigguratExponentialSampler of(UniformRandomProvider rng);
          public static ZigguratExponentialSampler of(UniformRandomProvider rng, double mean);
      }
      

      I suggest allowing creation of a sampler with mean 1. This special case has application in other samplers, for example the LargeMeanPoissonSampler.

      Attachments

        Issue Links

          Activity

            People

              aherbert Alex Herbert
              aherbert Alex Herbert
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h