Package org.ojalgo.random
Class Random1D
- java.lang.Object
-
- org.ojalgo.random.Random1D
-
public final class Random1D extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
length
private MatrixStore<java.lang.Double>
myCholeskiedCorrelations
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Array1D<java.lang.Double>
nextDouble()
An array of correlated random numbers, provided that you gave a correlations matrix to the constructor.Array1D<java.lang.Double>
nextGaussian()
An array of correlated random numbers, provided that you gave a correlations matrix to the constructor.private static java.util.Random
random()
static void
setSeed(long seed)
int
size()
-
-
-
Field Detail
-
length
public final int length
-
myCholeskiedCorrelations
private final MatrixStore<java.lang.Double> myCholeskiedCorrelations
-
-
Constructor Detail
-
Random1D
public Random1D(Access2D<?> correlations)
-
Random1D
public Random1D(int size)
If the variables are uncorrelated.
-
Random1D
private Random1D()
-
-
Method Detail
-
setSeed
public static void setSeed(long seed)
-
random
private static java.util.Random random()
-
nextDouble
public Array1D<java.lang.Double> nextDouble()
An array of correlated random numbers, provided that you gave a correlations matrix to the constructor.
-
nextGaussian
public Array1D<java.lang.Double> nextGaussian()
An array of correlated random numbers, provided that you gave a correlations matrix to the constructor.
-
size
public int size()
-
-