You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Phil Steitz (Created) (JIRA)" <ji...@apache.org> on 2011/12/11 22:04:40 UTC

[jira] [Created] (MATH-723) BitStreamGenerators (MersenneTwister, Well generators) do not clear normal deviate cache on setSeed

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

                 Key: MATH-723
                 URL: https://issues.apache.org/jira/browse/MATH-723
             Project: Commons Math
          Issue Type: Bug
    Affects Versions: 2.2, 2.1, 2.0
            Reporter: Phil Steitz
            Assignee: Phil Steitz
             Fix For: 3.0


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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (MATH-723) BitStreamGenerators (MersenneTwister, Well generators) do not clear normal deviate cache on setSeed

Posted by "Phil Steitz (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/MATH-723?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz resolved MATH-723.
------------------------------

    Resolution: Fixed

Fixed in r1213087.
                
> BitStreamGenerators (MersenneTwister, Well generators) do not clear normal deviate cache on setSeed
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MATH-723
>                 URL: https://issues.apache.org/jira/browse/MATH-723
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1, 2.2
>            Reporter: Phil Steitz
>            Assignee: Phil Steitz
>             Fix For: 3.0
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira