Interface RandomNumberGenerator1D

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default double getAsDouble()  
      default int getDimension()
      Get the sample vector dimension.
      default double[] getNext()
      Get the next sample vector of dimension n, where n is getDimension.
      double nextDouble()
      Thread safe implementation returning the next double value of this random number generator.
      default double nextDoubleFast()
      Possibly faster, non-thread safe implementation returning the next double value of this random number generator.
    • Method Detail

      • nextDouble

        double nextDouble()
        Thread safe implementation returning the next double value of this random number generator.
        Returns:
        The next double value of this random number generator
      • nextDoubleFast

        default double nextDoubleFast()
        Possibly faster, non-thread safe implementation returning the next double value of this random number generator. The user of this method has to ensure synchronization if this generator is shared by different threads.
        Returns:
        The next double value of this random number generator
      • getNext

        default double[] getNext()
        Description copied from interface: RandomNumberGenerator
        Get the next sample vector of dimension n, where n is getDimension. An implementation has to be thread safe.
        Specified by:
        getNext in interface RandomNumberGenerator
        Returns:
        The next sample vector of dimension n, where n is getDimension.