RandomElementIfc

A tagging interface that is used to facilitate stream control for model elements that require randomness

Author

rossetti

Inheritors

Properties

Link copied to clipboard

If true, the stream will automatically participate in having its stream advanced to the next sub-stream via stream managers

Link copied to clipboard
abstract var antithetic: Boolean

Tells the stream to start producing antithetic variates

Link copied to clipboard

If true, the stream will automatically participate in having its stream reset to its start stream via stream managers

Link copied to clipboard
abstract var rnStream: RNStreamIfc

the underlying stream of random numbers

Link copied to clipboard
open val streamNumber: Int

Functions

Link copied to clipboard
abstract fun advanceToNextSubStream()

Positions the RNG at the beginning of its next substream

Link copied to clipboard
abstract fun resetStartStream()

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.

Link copied to clipboard
abstract fun resetStartSubStream()

Resets the position of the RNG at the start of the current substream

Link copied to clipboard
open fun useStreamNumber(streamNumber: Int)

Assigns the stream associated with the supplied number from the default RNStreamProvider