SSJ
V. 2.6.

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

This class implements a PointSetRandomization that randomizes a sequence with a random starting point. The point set must be an instance of HaltonSequence or an IllegalArgumentException is thrown. For now, only the Halton sequence is allowed, but there may be others later.


Constructor Summary
RandomStart()
          Empty constructor.
RandomStart(RandomStream stream)
          Sets internal variable stream to the given stream.
 
Method Summary
 RandomStream getStream()
          Returns the internal RandomStream.
 void randomize(PointSet p)
          This method calls init.
 void setStream(RandomStream stream)
          Sets the internal RandomStream to stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomStart

public RandomStart()
Empty constructor.


RandomStart

public RandomStart(RandomStream stream)
Sets internal variable stream to the given stream.

Parameters:
stream - stream to use in the randomization
Method Detail

randomize

public void randomize(PointSet p)
This method calls init. If p is not a HaltonSequence, an IllegalArgumentException is thrown.

Specified by:
randomize in interface PointSetRandomization
Parameters:
p - Point set to randomize

setStream

public void setStream(RandomStream stream)
Sets the internal RandomStream to stream.

Specified by:
setStream in interface PointSetRandomization
Parameters:
stream - stream to use in the randomization

getStream

public RandomStream getStream()
Returns the internal RandomStream.

Specified by:
getStream in interface PointSetRandomization
Returns:
stream used in the randomization

SSJ
V. 2.6.

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