SSJ
3.3.1
Stochastic Simulation in Java
|
This interface is for a randomization that can be used to randomize a umontreal.ssj.hups.PointSet. More...
Public Member Functions | |
void | randomize (PointSet p) |
This method must randomize p . 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... | |
This interface is for a randomization that can be used to randomize a umontreal.ssj.hups.PointSet.
One can implement method randomize(PointSet) in any way. This method must use an internal umontreal.ssj.rng.RandomStream. This stream can be set in the constructor, but the methods getStream and setStream(RandomStream) must also be implemented.
The method randomize(PointSet) can be implemented using combinations of the randomization methods from the point set such as umontreal.ssj.hups.PointSet.addRandomShift, umontreal.ssj.hups.DigitalNet.leftMatrixScramble, umontreal.ssj.hups.DigitalNet.stripedMatrixScramble, etc.
RandomStream getStream | ( | ) |
Returns the internal umontreal.ssj.rng.RandomStream.
Implemented in RandomShift, RandomStart, NestedUniformScrambling, and EmptyRandomization.
void randomize | ( | PointSet | p | ) |
This method must randomize p
.
p | Point set to randomize |
Implemented in NestedUniformScrambling, RandomShift, RandomStart, SMScrambleShift, LMScrambleShift, and EmptyRandomization.
void setStream | ( | RandomStream | stream | ) |
Sets the internal umontreal.ssj.rng.RandomStream to stream
.
stream | stream to use in the randomization |
Implemented in NestedUniformScrambling, RandomShift, RandomStart, and EmptyRandomization.