Package org.moeaframework.util.sequence
Class Sobol
java.lang.Object
org.moeaframework.util.sequence.Sobol
- All Implemented Interfaces:
Sequence
Generates sequences using the Sobol' low-discrepancy sequence generator. When replacing uniformly random numbers
in Monte-Carlo integration, the error growth rate is reduced from
1.0/sqrt(n) to 1.0/n, where
n is the size of the sequence.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble[][]generate(int N, int D) Returns aN x Dmatrix of real numbers in the range[0, 1].
-
Constructor Details
-
Sobol
public Sobol()Constructs a Sobol' low-discrepancy sequence generator.
-
-
Method Details
-
generate
public double[][] generate(int N, int D) Description copied from interface:SequenceReturns aN x Dmatrix of real numbers in the range[0, 1].
-