|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.hups.PointSet
umontreal.iro.lecuyer.hups.CachedPointSet
umontreal.iro.lecuyer.hups.LatinHypercube
public class LatinHypercube
LatinHypercube
Implements Latin Hypercube Sampling (LHS) with n points in the s-dimensional unit hypercube. Each axis of the hypercube is divided into n intervals of length 1/n. The randomized point set has the property that for each coordinate j, there is exactly one point with coordinate j in each interval on length 1/n.
To generate the points, for each coordinate j we generate a random permutation πj of the n intervals. Then, for point i, we generate coordinate j randomly uniformly in the interval number πj(i). The points are enumerated by order of their first coordinate.
Constructor Summary | |
---|---|
LatinHypercube(int n,
int dim)
. |
Method Summary | |
---|---|
void |
addRandomShift(int fromDim,
int toDim,
RandomStream stream)
. |
void |
randomize(PointSetRandomization rand)
. |
void |
randomize(RandomStream stream)
. |
String |
toString()
. |
Methods inherited from class umontreal.iro.lecuyer.hups.CachedPointSet |
---|
getCoordinate, sortByCoordinate, sortMultidimBatch, sortMultidimBatchSplit, stripCoordinates |
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet |
---|
addRandomShift, addRandomShift, addRandomShift, clearRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getDimension, getNumPoints, getStream, iterator, randomize, randomize, randomize, setStream, unrandomize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LatinHypercube(int n, int dim)
Method Detail |
---|
public void randomize(RandomStream stream)
randomize
in class PointSet
public void addRandomShift(int fromDim, int toDim, RandomStream stream)
addRandomShift
in class CachedPointSet
public void randomize(PointSetRandomization rand)
randomize
in class CachedPointSet
public String toString()
PointSet
toString
in class CachedPointSet
|
SSJ V. labo. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |