SSJ
V. labo.

umontreal.iro.lecuyer.hups
Class RandomStart

java.lang.Object
  extended by umontreal.iro.lecuyer.hups.RandomStart
All Implemented Interfaces:
PointSetRandomization

public class RandomStart
extends Object
implements PointSetRandomization

RandomStart

This class implements a umontreal.iro.lecuyer.hupsPointSetRandomization that randomizes a sequence with a random starting point. The point set must be an instance of umontreal.iro.lecuyer.hupsHaltonSequence or an java.langIllegalArgumentException is thrown. For now, only the Halton sequence is allowed, but there may be others later.


Constructor Summary
RandomStart()
          .
RandomStart(RandomStream stream)
          .
 
Method Summary
 RandomStream getStream()
          .
 void randomize(PointSet p)
          .
 void setStream(RandomStream stream)
          .
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomStart

public RandomStart()
. \begin{tabb}
 Empty constructor.
 \end{tabb}


RandomStart

public RandomStart(RandomStream stream)
. \begin{tabb}
 Sets internal variable \texttt{stream} to the given
 \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}{Hal...
 ...e}, an
 \externalclass{java.lang}{IllegalArgumentException} is thrown.
 \end{tabb}
pPoint set to randomize

Specified by:
randomize in interface PointSetRandomization

setStream

public void setStream(RandomStream stream)
. \begin{tabb}
 Sets the internal
 \externalclass{umontreal.iro.lecuyer.rng}{RandomStream} to
 \texttt{stream}.
 \end{tabb}
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.