Class Well512a
- java.lang.Object
-
- org.apache.commons.rng.core.BaseProvider
-
- org.apache.commons.rng.core.source32.IntProvider
-
- org.apache.commons.rng.core.source32.AbstractWell
-
- org.apache.commons.rng.core.source32.Well512a
-
- All Implemented Interfaces:
RandomIntSource
,RestorableUniformRandomProvider
,UniformRandomProvider
public class Well512a extends AbstractWell
This class implements the WELL512a pseudo-random number generator from François Panneton, Pierre L'Ecuyer and Makoto Matsumoto.This generator is described in a paper by François Panneton, Pierre L'Ecuyer and Makoto Matsumoto Improved Long-Period Generators Based on Linear Recurrences Modulo 2 ACM Transactions on Mathematical Software, 32, 1 (2006). The errata for the paper are in wellrng-errata.txt.
- Since:
- 1.0
- See Also:
- WELL Random number generator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.commons.rng.core.source32.AbstractWell
AbstractWell.IndexTable
-
-
Field Summary
Fields Modifier and Type Field Description private static int
K
Number of bits in the pool.private static int
M1
First parameter of the algorithm.private static int
M2
Second parameter of the algorithm.private static int
M3
Third parameter of the algorithm.private static AbstractWell.IndexTable
TABLE
The indirection index table.-
Fields inherited from class org.apache.commons.rng.core.source32.AbstractWell
index, v
-
-
Constructor Summary
Constructors Constructor Description Well512a(int[] seed)
Creates a new random number generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
next()
-
Methods inherited from class org.apache.commons.rng.core.source32.AbstractWell
getStateInternal, setStateInternal
-
Methods inherited from class org.apache.commons.rng.core.source32.IntProvider
nextBoolean, nextBytes, nextBytes, nextBytesFill, nextDouble, nextInt, nextLong, resetCachedState
-
Methods inherited from class org.apache.commons.rng.core.BaseProvider
checkIndex, checkStateSize, composeStateInternal, extendSeed, extendSeed, fillState, fillState, restoreState, saveState, splitStateInternal, toString
-
-
-
-
Field Detail
-
K
private static final int K
Number of bits in the pool.- See Also:
- Constant Field Values
-
M1
private static final int M1
First parameter of the algorithm.- See Also:
- Constant Field Values
-
M2
private static final int M2
Second parameter of the algorithm.- See Also:
- Constant Field Values
-
M3
private static final int M3
Third parameter of the algorithm.- See Also:
- Constant Field Values
-
TABLE
private static final AbstractWell.IndexTable TABLE
The indirection index table.
-
-