SSJ
V. labo.

umontreal.iro.lecuyer.hups
Class RandShiftedPointSet

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

public class RandShiftedPointSet
extends ContainerPointSet

RandShiftedPointSet

Cette classe reprogramme un addRandomShift explicitement sur l'ensemble P, alors que le ContainerPointSet applique le addRandomShift sur le contenu P, ce qui est beaucoup plus propre et plus général. Faut-il éliminer cette classe? Est-elle vraiment nécessaire? This container class embodies a point set to which a random shift modulo 1 is applied (i.e., a single uniform random point is added to all points, modulo 1, to randomize the inner point set). When calling addRandomShift, a new random shift will be generated. This shift is represented by a vector of d uniforms over (0, 1), where d is the current dimension of the shift.


Constructor Summary
RandShiftedPointSet(PointSet P, int dimShift, RandomStream stream)
          .
 
Method Summary
 void addRandomShift()
          Deprecated. 
 void addRandomShift(int d1, int d2)
          Deprecated. 
 void addRandomShift(int d1, int d2, RandomStream stream)
          .
 void addRandomShift(RandomStream stream)
          .
 int getShiftDimension()
          .
 PointSetIterator iterator()
          .
 String toString()
          .
 
Methods inherited from class umontreal.iro.lecuyer.hups.ContainerPointSet
clearRandomShift, getCoordinate, getDimension, getNumPoints, getOriginalPointSet, randomize
 
Methods inherited from class umontreal.iro.lecuyer.hups.PointSet
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

RandShiftedPointSet

public RandShiftedPointSet(PointSet P,
                           int dimShift,
                           RandomStream stream)
. \begin{tabb}
 Constructs a structure to contain a randomly shifted version of \t...
 ...n up to \texttt{dimShift} dimensions,
 using stream \texttt{stream}.
 \end{tabb}
Ppoint set being randomized dimShiftdimension of the initial shift streamstream used for generating random shifts

Method Detail

getShiftDimension

public int getShiftDimension()
. \begin{tabb}
 Returns the number of dimensions of the current random shift.
 \end{tabb}


addRandomShift

public void addRandomShift(int d1,
                           int d2,
                           RandomStream stream)
. \begin{tabb}
 Changes the stream used for the random shifts to \texttt{stream}, ...
 ...t-\^etre faudrait-il
 en \'eliminer 2, comme dans \texttt{PointSet}.}
 \end{tabb}

Overrides:
addRandomShift in class ContainerPointSet
Parameters:
d1 - lower dimension of the random shift
d2 - upper dimension of the random shift
stream - the random stream

addRandomShift

public void addRandomShift(RandomStream stream)
. \begin{tabb}
 Changes the stream used for the random shifts to \texttt{stream}, ...
 ...es all coordinates of the random shift, up to its current dimension.
 \end{tabb}

\begin{hide}
 \par
 \end{hide}

Overrides:
addRandomShift in class ContainerPointSet
Parameters:
stream - the random stream

addRandomShift

@Deprecated
public void addRandomShift(int d1,
                                      int d2)
Deprecated. 

. \begin{tabb}
 Refreshes the random shift (generates new uniform values for the
 random shift coordinates) for coordinates \texttt{d1} to \texttt{d2-1}.
 \end{tabb}

Overrides:
addRandomShift in class PointSet

addRandomShift

@Deprecated
public void addRandomShift()
Deprecated. 

. \begin{hide}
 \par
 \begin{tabb}
 Refreshes all coordinates of the random shift, up to its current dimension.
 \end{tabb}\end{hide}

Overrides:
addRandomShift in class PointSet

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

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

SSJ
V. labo.

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