Metropolis Hastings1D
An implementation for a 1-Dimensional Metropolis Hasting process. The process is observable at each step
Parameters
the initial value to start generation process
the target function
the proposal function
Properties
If true, the stream will automatically participate in having its stream advanced to the next sub-stream via stream managers
Tells the stream to start producing antithetic variates
If true, the stream will automatically participate in having its stream reset to its start stream via stream managers
the underlying stream of random numbers
Functions
Positions the RNG at the beginning of its next substream
Allows the adding (attaching) of an observer to the observable
Returns how many observers are currently attached to the observable
Detaches all the observers from the observable
Allows the deletion (removing) of an observer from the observable
Resets statistics and sets the initial state the initial value or to the value found via the warmup period (if the warmup period was run).
Returns true if the observer is already attached
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
Resets the automatically collected statistics
Runs a warmup period and assigns the initial value of the process to the last value from the warmup process.
Generates the number of columns nCols with each column holding a random sample of size sampleSize
Generates the number of rows nRows with each row holding a random sample of size sampleSize
Fills the supplied matrix with randomly generated values
Fills the supplied array with randomly generated values
Assigns the stream associated with the supplied number from the default RNStreamProvider