Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-723

BitStreamGenerators (MersenneTwister, Well generators) do not clear normal deviate cache on setSeed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0, 2.1, 2.2
    • 3.0
    • None
    • None

    Description

      The BitStream generators generate normal deviates (for nextGaussian) in pairs, caching the last value generated. When reseeded, the cache should be cleared; otherwise seeding two generators with the same value is not guaranteed to generate the same sequence.

      Attachments

        Activity

          People

            psteitz Phil Steitz
            psteitz Phil Steitz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: