SSJ
V. labo.

umontreal.iro.lecuyer.hups
Class RandomShift

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.RandomShift
All Implemented Interfaces:
PointSetRandomization
Direct Known Subclasses:
LMScrambleShift, SMScrambleShift

public class RandomShift
extends Object
implements PointSetRandomization

RandomShift

This class implements a umontreal.iro.lecuyer.hupsPointSetRandomization. The umontreal.iro.lecuyer.rngRandomStream is stored internally. The method randomizePointSet simply calls umontreal.iro.lecuyer.hupsPointSetaddRandomShiftRandomStream(stream).

This class can be used as a base class to implement a specific randomization by overriding method randomizePointSet.


Constructor Summary
RandomShift()
          .
RandomShift(RandomStream stream)
          .
 
Method Summary
 RandomStream getStream()
          .
 void randomize(PointSet p)
          .
 void setStream(RandomStream stream)
          [tabb47]
streamstream to use in the randomization
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomShift

public RandomShift()
. \begin{tabb}
 Empty constructor: No stream is passed here for the randomization;...
 ...eam}{}.
 \pierre{Not sure if we should keep this; we need a stream!}
 \end{tabb}


RandomShift

public RandomShift(RandomStream stream)
. \begin{tabb}
 Sets the internal
 \externalclass{umontreal.iro.lecuyer.rng}{RandomStream} to \texttt{stream}.
 \end{tabb}
streamstream to use in the randomization

Method Detail

randomize

public void randomize(PointSet p)
. \begin{tabb}
 This method calls
 \externalmethod{umontreal.iro.lecuyer.hups}{Poi...
 ...his should be changed if we remove \texttt{PointSet.addRandomShift}.}
 \end{tabb}
pPoint set to randomize

Specified by:
randomize in interface PointSetRandomization

setStream

public void setStream(RandomStream stream)
[tabb47]
streamstream to use in the randomization

Specified by:
setStream in interface PointSetRandomization

getStream

public RandomStream getStream()
. \begin{tabb}
 Returns the internal
 \externalclass{umontreal.iro.lecuyer.rng}{RandomStream}.
 \end{tabb}
stream used in the randomization

Specified by:
getStream in interface PointSetRandomization

SSJ
V. labo.

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