SSJ
V. labo.

umontreal.iro.lecuyer.hups
Class AntitheticPointSet

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.PointSet
      extended by umontreal.iro.lecuyer.hups.ContainerPointSet
          extended by umontreal.iro.lecuyer.hups.AntitheticPointSet

public class AntitheticPointSet
extends ContainerPointSet

AntitheticPointSet

This container class provides antithetic points. That is, 1 - ui, j is returned in place of coordinate ui, j. To generate regular and antithetic variates with a point set p, e.g., for variance reduction, one can define an AntitheticPointSet object pa that contains p, and then generate the regular variates with p and the antithetic variates with pa.

Perhaps we should have a container of a stream rather than a container of a point set.


Constructor Summary
AntitheticPointSet(PointSet P)
          .
 
Method Summary
 double getCoordinate(int i, int j)
          .
 PointSetIterator iterator()
          .
 String toString()
          .
 
Methods inherited from class umontreal.iro.lecuyer.hups.ContainerPointSet
addRandomShift, addRandomShift, clearRandomShift, getDimension, getNumPoints, getOriginalPointSet, randomize
 
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet
addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getStream, randomize, randomize, randomize, randomize, setStream, unrandomize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AntitheticPointSet

public AntitheticPointSet(PointSet P)
. \begin{tabb}
 Constructs an antithetic point set from the given point set \texttt{P}.
 \end{tabb}
Ppoint set for which we want antithetic version

Method Detail

getCoordinate

public double getCoordinate(int i,
                            int j)
Description copied from class: PointSet
. \begin{tabb}
 Returns $u_{i,j}$, the coordinate $j$\ of the point $i$.
 \richard{...
 ...xttt{getCoordinate} impl\'ementent le random shift
 quand il existe?}
 \end{tabb}
iindex of the point to look for jindex of the coordinate to look for the value of ui, j

Overrides:
getCoordinate in class ContainerPointSet

iterator

public PointSetIterator iterator()
Description copied from class: PointSet
. \begin{tabb}
 Constructs and returns a point set iterator.
 The default implemen...
 ...oordinates, but subclasses can reimplement it
 for better efficiency.
 \end{tabb}
point set iterator for the point set

Overrides:
iterator in class ContainerPointSet

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 ContainerPointSet

SSJ
V. labo.

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