SSJ
3.2.1
Stochastic Simulation in Java
|
This class implements a umontreal.ssj.hups.PointSetRandomization that randomizes a sequence with a random starting point. More...
Public Member Functions | |
RandomStart () | |
Empty constructor. | |
RandomStart (RandomStream stream) | |
Sets internal variable stream to the given stream . More... | |
void | randomize (PointSet p) |
This method calls umontreal.ssj.hups.HaltonSequence.init(double[]). More... | |
void | setStream (RandomStream stream) |
Sets the internal umontreal.ssj.rng.RandomStream to stream . More... | |
RandomStream | getStream () |
Returns the internal umontreal.ssj.rng.RandomStream. More... | |
Protected Attributes | |
RandomStream | stream |
This class implements a umontreal.ssj.hups.PointSetRandomization that randomizes a sequence with a random starting point.
The point set must be an instance of umontreal.ssj.hups.HaltonSequence or an IllegalArgumentException is thrown. For now, only the Halton sequence is allowed, but there may be others later.
RandomStart | ( | RandomStream | stream | ) |
Sets internal variable stream
to the given stream
.
stream | stream to use in the randomization |
RandomStream getStream | ( | ) |
Returns the internal umontreal.ssj.rng.RandomStream.
Implements PointSetRandomization.
void randomize | ( | PointSet | p | ) |
This method calls umontreal.ssj.hups.HaltonSequence.init(double[]).
If p
is not a umontreal.ssj.hups.HaltonSequence, an IllegalArgumentException is thrown.
p | Point set to randomize |
Implements PointSetRandomization.
void setStream | ( | RandomStream | stream | ) |
Sets the internal umontreal.ssj.rng.RandomStream to stream
.
stream | stream to use in the randomization |
Implements PointSetRandomization.