com.metsci.glimpse.util.math.stochastic
Class StochasticEngineMersenne

java.lang.Object
  extended by com.metsci.glimpse.util.math.stochastic.StochasticEngineMersenne
All Implemented Interfaces:
StochasticEngine

public final class StochasticEngineMersenne
extends java.lang.Object
implements StochasticEngine

Modified from a C-program for MT19937 by Takuji Nishimura and Makoto Matsumoto. (http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/mt19937-64.c) License on original C-program is 3-clause BSD. Seeding could be improved to use longs.

Author:
osborn

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.metsci.glimpse.util.math.stochastic.StochasticEngine
StochasticEngine.State
 
Method Summary
static StochasticEngineMersenne createEngine(int seed)
           
 Generator getGenerator()
           
 StochasticEngine.State getState()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getState

public final StochasticEngine.State getState()
Specified by:
getState in interface StochasticEngine

getGenerator

public final Generator getGenerator()
Specified by:
getGenerator in interface StochasticEngine

createEngine

public static StochasticEngineMersenne createEngine(int seed)


Copyright © 2012 Metron, Inc.. All Rights Reserved.