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. | |
| void | randomize (PointSet p) |
| This method calls umontreal.ssj.hups.HaltonSequence.init(double[]). | |
| void | setStream (RandomStream stream) |
| Sets the internal umontreal.ssj.rng.RandomStream to stream. | |
| RandomStream | getStream () |
| Returns the internal umontreal.ssj.rng.RandomStream. | |
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.
Definition at line 39 of file RandomStart.java.
| umontreal.ssj.hups.RandomStart.RandomStart | ( | ) |
Empty constructor.
Definition at line 46 of file RandomStart.java.
| umontreal.ssj.hups.RandomStart.RandomStart | ( | RandomStream | stream | ) |
Sets internal variable stream to the given stream.
| stream | stream to use in the randomization |
Definition at line 54 of file RandomStart.java.
| RandomStream umontreal.ssj.hups.RandomStart.getStream | ( | ) |
Returns the internal umontreal.ssj.rng.RandomStream.
Implements umontreal.ssj.hups.PointSetRandomization.
Definition at line 89 of file RandomStart.java.
| void umontreal.ssj.hups.RandomStart.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 umontreal.ssj.hups.PointSetRandomization.
Definition at line 65 of file RandomStart.java.
| void umontreal.ssj.hups.RandomStart.setStream | ( | RandomStream | stream | ) |
Sets the internal umontreal.ssj.rng.RandomStream to stream.
| stream | stream to use in the randomization |
Implements umontreal.ssj.hups.PointSetRandomization.
Definition at line 80 of file RandomStart.java.