|
SSJ
3.3.1
Stochastic Simulation in Java
|
This class implements a PointSetRandomization that performs Owen's nested uniform scrambling [191], [195] . More...
Public Member Functions | |
| NestedUniformScrambling () | |
| Empty constructor. | |
| NestedUniformScrambling (RandomStream stream) | |
Create a NestedUniformScrambling instance, using stream as the random generator, and randomizing all of the DigitalNet.outDigits output bits of the DigitalNetBase2, up to 31 bits. More... | |
| NestedUniformScrambling (RandomStream stream, int numBits) | |
Create a NestedUniformScrambling instance, using stream as the random generator, and randomizing only the first numBits output bits of the DigitalNetBase2. More... | |
| RandomStream | getStream () |
| Returns the internal umontreal.ssj.rng.RandomStream. More... | |
| void | setStream (RandomStream stream) |
Sets the internal umontreal.ssj.rng.RandomStream to stream. More... | |
| void | setNumBits (int numBits) |
Set the number of bits to randomize to numBits | |
| void | randomize (PointSet p) |
| This method calls scrambles the points in the cached point set. More... | |
| String | toString () |
| Returns a descriptor of this object. | |
This class implements a PointSetRandomization that performs Owen's nested uniform scrambling [191], [195] .
The point set must be a CachedPointSet of a DigitalNetBase2.
To use this randomization, one should should call the randomize() function of an instance of NestedUniformScrambling with, as its argument, an instance of CachedPointSet with a reference to a DigitalNetBase2 instance. The actual implementation is done in DigitalNetBase2.nestedUniformScramble().
| NestedUniformScrambling | ( | RandomStream | stream | ) |
Create a NestedUniformScrambling instance, using stream as the random generator, and randomizing all of the DigitalNet.outDigits output bits of the DigitalNetBase2, up to 31 bits.
| stream | stream to use in the randomization |
| NestedUniformScrambling | ( | RandomStream | stream, |
| int | numBits | ||
| ) |
Create a NestedUniformScrambling instance, using stream as the random generator, and randomizing only the first numBits output bits of the DigitalNetBase2.
| stream | stream to use in the randomization |
| numBits | number of output bits to scramble (it can be smaller than, equal to or larger than the number of output bits in the DigitalNetBase2). |
| RandomStream getStream | ( | ) |
Returns the internal umontreal.ssj.rng.RandomStream.
Implements PointSetRandomization.
| void randomize | ( | PointSet | p | ) |
This method calls scrambles the points in the cached point set.
If p is not a CachedPointSet of a DigitalNetBase2, 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.
1.8.14