- java.lang.Object
-
- net.finmath.randomnumbers.SobolSequence
-
- All Implemented Interfaces:
Serializable,RandomNumberGenerator
public class SobolSequence extends Object implements RandomNumberGenerator
Implements a multi-dimensional Sobol sequence. The class is just a wrapper to Apache commons-math implementation in order to implement the interfaceRandomNumberGeneratorwith a minimal change. The value 0, the first element of the sequence, is omitted.- Version:
- 1.0
- Author:
- Christian Fries
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SobolSequence(int dimension)Constructs a Sobol sequence with given dimension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDimension()Get the sample vector dimension.double[]getNext()Get the next sample vector of dimension n, where n isgetDimension.
-
-
-
Method Detail
-
getNext
public double[] getNext()
Description copied from interface:RandomNumberGeneratorGet the next sample vector of dimension n, where n isgetDimension. An implementation has to be thread safe.- Specified by:
getNextin interfaceRandomNumberGenerator- Returns:
- The next sample vector of dimension n, where n is
getDimension.
-
getDimension
public int getDimension()
Description copied from interface:RandomNumberGeneratorGet the sample vector dimension.- Specified by:
getDimensionin interfaceRandomNumberGenerator- Returns:
- The sample vector dimension n.
-
-