|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Random net.sourceforge.cilib.math.random.generator.Random net.sourceforge.cilib.math.random.generator.RANLUX
public class RANLUX
This is an implementation of Martin Luescher's second generation double-precision (48-bit) version of the RANLUX generator.
It uses a lagged-fibonacci-with-skipping algorithm to produce "luxury random numbers". The period of the generator is about 10^171. The algorithm has mathematically proven properties and it can provide truly decorrelated numbers at a known level of randomness.
This generator is slow.
References:
This code is based on the implementation in GSL (GNU Scientific Library) which is also covered by the GNU General Public License. The original C source code is Copyright (C) 1996, 1997, 1998, 1999, 2000 James Theiler and Brian Gough. Comment text ripped from GSL.
Constructor Summary | |
---|---|
RANLUX()
Create a new instance of RANLUX. |
|
RANLUX(long seed)
Create a new instance of RANLUX with the provided seed
value. |
Method Summary | |
---|---|
RANLUX |
getClone()
Create a cloned copy of the current object and return it. |
protected int |
next(int bits)
|
void |
setSeed(long seed)
|
Methods inherited from class java.util.Random |
---|
nextBoolean, nextBytes, nextDouble, nextFloat, nextGaussian, nextInt, nextInt, nextLong |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RANLUX()
public RANLUX(long seed)
seed
value.
seed
- The initial value for the seed.Method Detail |
---|
public RANLUX getClone()
getClone
in interface Cloneable
getClone
in class Random
Object.clone()
public void setSeed(long seed)
setSeed
in class Random
protected int next(int bits)
next
in class Random
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |