Class MersenneTwister

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.Randomizable, adams.core.ShallowCopySupporter<adams.data.random.RandomNumberGenerator>, adams.core.SizeOfHandler, CommonsRandomNumberGenerator<Number>, adams.data.random.RandomIntegerRangeGenerator<Number>, adams.data.random.RandomNumberGenerator<Number>, adams.data.random.SeededRandomNumberGenerator<Number>, Serializable

    public class MersenneTwister
    extends AbstractCommonsRandomNumberGenerator
    This class implements a powerful pseudo-random number generator developed by Makoto Matsumoto and Takuji Nishimura during 1996-1997.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -seed <long> (property: seed)
        The seed value for the random number generator.
        default: 1
     
    -generate-doubles <boolean> (property: generateDoubles)
        If enabled, doubles instead of integers are returned.
        default: false
     
    -min-value <int> (property: minValue)
        The smallest integer that could be generated.
        default: 1
     
    -max-value <int> (property: maxValue)
        The largest integer that could be generated.
        default: 1000
     
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    MersenneTwister, Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MersenneTwister()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.commons.math3.random.RandomGenerator getRandomGenerator()
      The underlying random number generator.
      String globalInfo()
      Returns a string describing the object.
      • Methods inherited from class adams.data.random.AbstractSeededRandomNumberGenerator

        getSeed, seedTipText, setSeed
      • Methods inherited from class adams.data.random.AbstractRandomNumberGenerator

        forCommandLine, forName, getGenerators, next, shallowCopy, shallowCopy
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.core.Destroyable

        destroy
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
      • Methods inherited from interface adams.core.option.OptionHandler

        cleanUpOptions, getOptionManager, toCommandLine
      • Methods inherited from interface adams.data.random.RandomNumberGenerator

        next
      • Methods inherited from interface adams.core.ShallowCopySupporter

        shallowCopy, shallowCopy
    • Constructor Detail

      • MersenneTwister

        public MersenneTwister()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui