|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.PersistentObject
org.apache.mahout.math.jet.random.engine.RandomEngine
org.apache.mahout.math.jet.random.engine.MersenneTwister
@Deprecated public class MersenneTwister
Constructor Summary | |
---|---|
MersenneTwister()
Deprecated. Constructs and returns a random number generator with a default seed, which is a constant. |
|
MersenneTwister(java.util.Date d)
Deprecated. Constructs and returns a random number generator seeded with the given date. |
|
MersenneTwister(int seed)
Deprecated. Constructs and returns a random number generator with the given seed. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Deprecated. Returns a copy of the receiver; the copy will produce identical sequences. |
protected void |
nextBlock()
Deprecated. Generates N words at one time. |
int |
nextInt()
Deprecated. Returns a 32 bit uniformly distributed random number in the closed interval [Integer.MIN_VALUE,Integer.MAX_VALUE] (including Integer.MIN_VALUE and Integer.MAX_VALUE). |
protected void |
setSeed(int seed)
Deprecated. Sets the receiver's seed. |
Methods inherited from class org.apache.mahout.math.jet.random.engine.RandomEngine |
---|
apply, apply, makeDefault, nextDouble, nextFloat, nextLong, raw |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MersenneTwister()
public MersenneTwister(int seed)
public MersenneTwister(java.util.Date d)
d
- typically new Date()Method Detail |
---|
public java.lang.Object clone()
clone
in class PersistentObject
protected void nextBlock()
public int nextInt()
nextInt
in class RandomEngine
protected void setSeed(int seed)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |