Class LatinHypercube

java.lang.Object
org.moeaframework.util.sequence.LatinHypercube
All Implemented Interfaces:
Sequence

public class LatinHypercube extends Object implements Sequence
Generates sequences using Latin hypercube sampling (LHS). Each axis is divided into N stripes and exactly one point may exist in each stripe.

References:

  1. McKay M.D., Beckman, R.J., and Conover W.J. "A Comparison of Three Methods for Selecting Values of Input Variables in the Analysis of Output from a Computer Code." Technometrics, 21(2):239-245, 1979.
  • Constructor Details

    • LatinHypercube

      public LatinHypercube()
      Constructs a Latin hypercube sequence generator.
  • Method Details

    • generate

      public double[][] generate(int N, int D)
      Description copied from interface: Sequence
      Returns a N x D matrix of real numbers in the range [0, 1].
      Specified by:
      generate in interface Sequence
      Parameters:
      N - the number of sample points
      D - the dimension of each sample point
      Returns:
      a N x D matrix of real numbers in the range [0, 1]