Class Random1D


  • public final class Random1D
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Random1D()  
        Random1D​(int size)
      If the variables are uncorrelated.
        Random1D​(Access2D<?> correlations)  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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()