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

LargeMeanPoissonSampler cannot handle a mean less than 1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.3
    • sampling
    • None

    Description

      The LargeMeanPoissonSampler computes:

      lambda = Math.floor(mean);
      logLambda = Math.log(lambda);
      

      So if the mean is less than 1 the logLambda is NaN and other precomputed factors are based on a lambda of zero. This results in infinite loop within the sampler method.

      Fix by removing support for a mean less than 1.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: