SSJ
3.3.1
Stochastic Simulation in Java
|
This class implements a umontreal.ssj.hups.PointSetRandomization that randomizes a sequence simply by taking 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 simply by taking a random starting point.
For now, this only applies to the Halton sequence, but it could eventually be generalized to other types of sequences. The point set must be an instance of umontreal.ssj.hups.HaltonSequence or an IllegalArgumentException is thrown.
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.