SSJ
V. labo.

umontreal.iro.lecuyer.hups
Class StratifiedUnitCubeAnti

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.PointSet
      extended by umontreal.iro.lecuyer.hups.CachedPointSet
          extended by umontreal.iro.lecuyer.hups.StratifiedUnitCubeAnti

public class StratifiedUnitCubeAnti
extends CachedPointSet

StratifiedUnitCubeAnti

This class implements a stratification of the unit cube in rectangular boxes of same size and orientation, similar to StratifiedUnitCube. The difference is that in each rectangular box, there are two antithetic points with respect to the opposite (smallest and largest) corners of the box. The points are numbered as in StratifiedUnitCube, except that point i in StratifiedUnitCube becomes point 2i here, and its antithetic point in the same box is point number 2i + 1.


Constructor Summary
StratifiedUnitCubeAnti(int[] k, int dim)
          .
StratifiedUnitCubeAnti(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

StratifiedUnitCubeAnti

public StratifiedUnitCubeAnti(int[] k,
                              int dim)
. \begin{tabb}
 Builds a stratified points set in {\tt dim} dimensions, with {\tt k[j]} intervals in dimension {\tt j}.
 \end{tabb}
knumber of intervals in each dimension diminteger, dimension of the points set


StratifiedUnitCubeAnti

public StratifiedUnitCubeAnti(int k,
                              int dim)
. \begin{tabb}
 Same as {\tt StratifiedUnitCube (int[] k, int dim)} with all coord...
 ... gives $k^s$\ strata (and $n = 2k^s$\ points), with $s = {\tt dim}$.
 \end{tabb}

Method Detail

randomize

public void randomize(RandomStream stream)
. \begin{tabb}
 This randomization generates one point randomly in its correspondi...
 ...stratified points are defined only after this method has been called.
 \end{tabb}
streamRandom stream to generate the n×$ \tt dim$ uniforms required to randomize the points

Overrides:
randomize in class PointSet

addRandomShift

public void addRandomShift(int fromDim,
                           int toDim,
                           RandomStream stream)
. \begin{tabb}
 Random shifts and partial randomizations are irrelevant here, so t...
 ...e parameters \texttt{fromDim} and \texttt{toDim} are \emph{not used}.
 \end{tabb}

Overrides:
addRandomShift in class CachedPointSet

randomize

public void randomize(PointSetRandomization rand)
. \begin{tabb}
 Randomizes the points using the locally antithetic stratification,...
 ...texttt{rand} is.
 Equivalent to \texttt{randomize (rand.getStream)}.
 \end{tabb}

Overrides:
randomize in class CachedPointSet

toString

public String toString()
Description copied from class: PointSet
. \begin{tabb}
 Formats a string that contains information about the point set.
 \end{tabb}
string representation of the point set information

Overrides:
toString in class CachedPointSet

SSJ
V. labo.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.