Package net.finmath.randomnumbers
Interface RandomNumberGenerator1D
-
- All Superinterfaces:
DoubleSupplier,RandomNumberGenerator,Serializable
- All Known Implementing Classes:
MersenneTwister
public interface RandomNumberGenerator1D extends RandomNumberGenerator, DoubleSupplier, Serializable
Interface for a 1-dimensional random number generator generating a sequence of vectors sampling the space [0,1]- Version:
- 1.0
- Author:
- Christian Fries
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default doublegetAsDouble()default intgetDimension()Get the sample vector dimension.default double[]getNext()Get the next sample vector of dimension n, where n isgetDimension.doublenextDouble()
-
-
-
Method Detail
-
nextDouble
double nextDouble()
-
getNext
default double[] getNext()
Description copied from interface:RandomNumberGeneratorGet the next sample vector of dimension n, where n isgetDimension.- Specified by:
getNextin interfaceRandomNumberGenerator- Returns:
- The next sample vector of dimension n, where n is
getDimension.
-
getDimension
default int getDimension()
Description copied from interface:RandomNumberGeneratorGet the sample vector dimension.- Specified by:
getDimensionin interfaceRandomNumberGenerator- Returns:
- The sample vector dimension n.
-
getAsDouble
default double getAsDouble()
- Specified by:
getAsDoublein interfaceDoubleSupplier
-
-