MOEA Framework 2.12
API Specification

org.moeaframework.util.sequence
Class LatinHypercube

java.lang.Object
  extended by 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 Summary
LatinHypercube()
          Constructs a Latin hypercube sequence generator.
 
Method Summary
 double[][] generate(int N, int D)
          Returns a N x D matrix of real numbers in the range [0, 1].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatinHypercube

public LatinHypercube()
Constructs a Latin hypercube sequence generator.

Method Detail

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]

MOEA Framework 2.12
API Specification

Copyright 2009-2016 MOEA Framework. All rights reserved.
Licensed under the GNU Lesser General Public License.
Return to the MOEA Framework homepage. Visit us on Github!