|
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.StratifiedUnitCube
public class StratifiedUnitCube
StratifiedUnitCube
This class implements a stratification of the unit cube in rectangular boxes of same size and orientation. In s dimensions, it divides the jth axis in kj≥1 equal parts of length dj = 1/kj, for j = 0,..., s - 1. This partitions the unit cube [0, 1)s into n = k0 ... ks-1 rectangular boxes of the same size. The point set is defined by generating one random point uniformly in each of those n boxes.
We number the boxes (or strata) as follows: The box determined by the interval [cjdj,(cj +1)dj) for j = 0,..., s - 1 has number i = c0 + c1k0 + ... + cs-1k0 ... ks-2. Check. Correct?? By default, the points are enumerated by order of their box number. One can also create iterators that enumerate the points by order of any given coordinate.
Although this class extends CachedPointSet, here there is no underlying point set P that is cached.
Constructor Summary | |
---|---|
StratifiedUnitCube(int[] k,
int dim)
. |
|
StratifiedUnitCube(int k,
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 StratifiedUnitCube(int[] k, int dim)
public StratifiedUnitCube(int k, 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 |