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 TypeMethodDescriptionboolean
Deprecated.void
nextBytes
(byte[] bytes) Deprecated.double
Deprecated.float
Deprecated.double
Deprecated.generates a gaussian random number that is correlated with the previous gaussian random number nextGaussian = correlation*prevGaussian + randomGaussian*sqrt(1-correlation^2)int
nextInt()
Deprecated.int
nextInt
(int bound) Deprecated.long
nextLong()
Deprecated.Methods inherited from class java.util.Random
doubles, doubles, doubles, doubles, ints, ints, ints, ints, longs, longs, longs, longs, next, setSeed
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
nextDouble
in interfaceRandomGenerator
- Overrides:
nextDouble
in classRandom
-
nextBoolean
public boolean nextBoolean()Deprecated.- Specified by:
nextBoolean
in interfaceRandomGenerator
- Overrides:
nextBoolean
in classRandom
-
nextBytes
public void nextBytes(byte[] bytes) Deprecated.- Specified by:
nextBytes
in interfaceRandomGenerator
- Overrides:
nextBytes
in classRandom
-
nextFloat
public float nextFloat()Deprecated.- Specified by:
nextFloat
in interfaceRandomGenerator
- Overrides:
nextFloat
in 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:
nextGaussian
in interfaceRandomGenerator
- Overrides:
nextGaussian
in classRandom
-
nextInt
public int nextInt(int bound) Deprecated.- Specified by:
nextInt
in interfaceRandomGenerator
- Overrides:
nextInt
in classRandom
-
nextInt
public int nextInt()Deprecated.- Specified by:
nextInt
in interfaceRandomGenerator
- Overrides:
nextInt
in classRandom
-
nextLong
public long nextLong()Deprecated.- Specified by:
nextLong
in interfaceRandomGenerator
- Overrides:
nextLong
in classRandom
-