net.sourceforge.cilib.math.random.generator
Class Tausworthe
java.lang.Object
java.util.Random
net.sourceforge.cilib.math.random.generator.Random
net.sourceforge.cilib.math.random.generator.Tausworthe
- All Implemented Interfaces:
- Serializable, Cloneable
public class Tausworthe
- extends Random
This is a maximally equidistributed combined Tausworthe generator
by L'Ecuyer.
The period of this generator is 2^88 (about 10^26). It uses 3
words of state per generator.
References:
-
P. L'Ecuyer, "Maximally Equidistributed Combined Tausworthe
Generators", `Mathematics of Computation', 65, 213 (1996),
203-213.
-
P. L'Ecuyer, "Tables of Maximally Equidistributed Combined
LFSR Generators", `Mathematics of Computation', 68, 225
(1999), 261-269
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.
- Author:
- Edwin Peer
- See Also:
- Serialized Form
Method Summary |
Tausworthe |
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tausworthe
public Tausworthe()
Tausworthe
public Tausworthe(long seed)
getClone
public Tausworthe getClone()
- Description copied from class:
Random
- Create a cloned copy of the current object and return it. In general
the created copy will be a deep copy of the provided instance. As
a result this operation an be quite expensive if used incorrectly.
- Specified by:
getClone
in interface Cloneable
- Specified by:
getClone
in class Random
- Returns:
- An exact clone of the current object instance.
- See Also:
Object.clone()
setSeed
public void setSeed(long seed)
- Overrides:
setSeed
in class Random
next
protected int next(int bits)
- Overrides:
next
in class Random
Copyright © 2009 CIRG. All Rights Reserved.