Class StochasticEngineLcp
- java.lang.Object
-
- com.metsci.glimpse.util.math.stochastic.StochasticEngineLcp
-
- All Implemented Interfaces:
StochasticEngine
public final class StochasticEngineLcp extends Object implements StochasticEngine
This engine is based around the same Linear Congruential Pseudorandom (LCP) number generator used in java.util.Random. It is described in Knuth's book.- Author:
- osborn
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StochasticEngineLcp.LcpState
-
Nested classes/interfaces inherited from interface com.metsci.glimpse.util.math.stochastic.StochasticEngine
StochasticEngine.State
-
-
Constructor Summary
Constructors Constructor Description StochasticEngineLcp(StochasticEngineLcp.LcpState state)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StochasticEngineLcp
createEngine(long lcpStateSeed)
Generator
getGenerator()
StochasticEngine.State
getState()
-
-
-
Constructor Detail
-
StochasticEngineLcp
public StochasticEngineLcp(StochasticEngineLcp.LcpState state)
-
-
Method Detail
-
getState
public final StochasticEngine.State getState()
- Specified by:
getState
in interfaceStochasticEngine
-
getGenerator
public final Generator getGenerator()
- Specified by:
getGenerator
in interfaceStochasticEngine
-
createEngine
public static StochasticEngineLcp createEngine(long lcpStateSeed)
-
-