RNStream
Instances of RNStream are what is made by the factory. Each created stream should be 2 to 127 {@literal 2^127} steps ahead of the last stream created.
Properties
If true, the stream will automatically participate in having its stream advanced to the next sub-stream via stream managers
This stream generates antithetic variates if and only if {\tt antithetic = true}.
Returns the antithetic value of the previous value
If true, the stream will automatically participate in having its stream reset to its start stream via stream managers
Functions
Positions the RNG at the beginning of its next substream
Returns a copy of the stream that has exactly the same state
Randomly selects from the array using the supplied cdf, NO checking of arrays
Randomly permutes the supplied array using the stream. The array is changed.
Randomly permutes the supplied array
Randomly permutes the supplied array, the array is changed.
Randomly permutes the supplied List using the stream. The list is changed.
Randomly select an element from the array
Randomly selects from the array using the supplied cdf
The resetStartStream method will position the RNG at the beginning of its stream. This is the same location in the stream as assigned when the RNG was created and initialized.
Resets the position of the RNG at the start of the current substream
Pearson Type 6
Returns a randomly generated sign -1, 0, +1 all equally likely.
The array x is changed, such that the first sampleSize elements contain the generated sample. That is, x0, x1, ... , xsampleSize-1 is the randomly sampled values without replacement
The array x is changed, such that the first sampleSize elements contain the generated sample. That is, x0, x1, ... , xsampleSize-1 is the random sample without replacement
The array x is changed, such that the first sampleSize elements contain the sample. That is, x0, x1, ... , xsampleSize-1 is the random sample without replacement
The List x is changed, such that the first sampleSize elements contain the sampled values. That is, x.get(0), x.get(1), ... , x.get(sampleSize-1) is the random sample without replacement
Returns the seed for the start of the sub-stream