Package rma.stats.model
Class SeriallyCorrelatedRandom
java.lang.Object
java.util.Random
rma.stats.model.SeriallyCorrelatedRandom
- All Implemented Interfaces:
Serializable,RandomGenerator
Deprecated.
in hec-monolith 1.0. Look for equivalent in package hec.statistics
Serially correlated random number generator.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.random.RandomGenerator
RandomGenerator.ArbitrarilyJumpableGenerator, RandomGenerator.JumpableGenerator, RandomGenerator.LeapableGenerator, RandomGenerator.SplittableGenerator, RandomGenerator.StreamableGenerator -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.voidnextBytes(byte[] bytes) Deprecated.doubleDeprecated.floatDeprecated.doubleDeprecated.generates a gaussian random number that is correlated with the previous gaussian random number nextGaussian = correlation*prevGaussian + randomGaussian*sqrt(1-correlation^2)intnextInt()Deprecated.intnextInt(int bound) Deprecated.longnextLong()Deprecated.Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, next, setSeedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.random.RandomGenerator
isDeprecated, nextDouble, nextDouble, nextExponential, nextFloat, nextFloat, nextGaussian, nextInt, nextLong, nextLong
-
Constructor Details
-
SeriallyCorrelatedRandom
public SeriallyCorrelatedRandom(long seed, double correlation) Deprecated.- Parameters:
seed- - seed for the random number generatorcorrelation- - correlation for the random numbers
-
-
Method Details
-
nextDouble
public double nextDouble()Deprecated.- Specified by:
nextDoublein interfaceRandomGenerator- Overrides:
nextDoublein classRandom
-
nextBoolean
public boolean nextBoolean()Deprecated.- Specified by:
nextBooleanin interfaceRandomGenerator- Overrides:
nextBooleanin classRandom
-
nextBytes
public void nextBytes(byte[] bytes) Deprecated.- Specified by:
nextBytesin interfaceRandomGenerator- Overrides:
nextBytesin classRandom
-
nextFloat
public float nextFloat()Deprecated.- Specified by:
nextFloatin interfaceRandomGenerator- Overrides:
nextFloatin classRandom
-
nextGaussian
public double nextGaussian()Deprecated.generates a gaussian random number that is correlated with the previous gaussian random number nextGaussian = correlation*prevGaussian + randomGaussian*sqrt(1-correlation^2)- Specified by:
nextGaussianin interfaceRandomGenerator- Overrides:
nextGaussianin classRandom
-
nextInt
public int nextInt(int bound) Deprecated.- Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-
nextInt
public int nextInt()Deprecated.- Specified by:
nextIntin interfaceRandomGenerator- Overrides:
nextIntin classRandom
-
nextLong
public long nextLong()Deprecated.- Specified by:
nextLongin interfaceRandomGenerator- Overrides:
nextLongin classRandom
-