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

ZigguratNormalizedGaussianSampler to use a table size of 256

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Implemented
    • 1.3
    • 1.4
    • sampling
    • None

    Description

      The ZigguratNormalizedGaussianSampler uses a table size of 128. The source paper provides constants for a table size of 256. This table size brings a small performance gain as the table is used for more of the sampling and the rejection algorithm for sampling at the edge of the ziggurat is used less.

      The JMH examples module contains an implementation of the 256 size table for performance testing (see RNG-152). I suggest swapping the implementations so the 128 table size is in the examples and the 256 table size is in the main sampling package.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: