Class Random1D

java.lang.Object
org.ojalgo.random.Random1D

public final class Random1D extends Object
  • Field Details

    • length

      public final int length
    • myCholeskiedCorrelations

      private final MatrixStore<Double> myCholeskiedCorrelations
  • Constructor Details

    • Random1D

      public Random1D(Access2D<?> correlations)
    • Random1D

      public Random1D(int size)
      If the variables are uncorrelated.
    • Random1D

      private Random1D()
  • Method Details

    • setSeed

      public static void setSeed(long seed)
    • random

      private static Random random()
    • nextDouble

      public Array1D<Double> nextDouble()
      An array of correlated random numbers, provided that you gave a correlations matrix to the constructor.
    • nextGaussian

      public Array1D<Double> nextGaussian()
      An array of correlated random numbers, provided that you gave a correlations matrix to the constructor.
    • size

      public int size()