Description Usage Arguments Value
View source: R/jprs_rev_kern.R
Assumes the holding rate is 1. Assumes C * (normalising constant of target) = 1.
1 | jprs(ntours, dtarg_log, dmu_log, rmu, mh_kern)
|
ntours |
Number of tours to simulate |
dtarg_log |
Function to evaluate the log target density |
dmu_log |
Function to evaluate the log regeneration distribution |
rmu |
Function to simulate n times from the regeneration distribution |
mh_kern |
Metrpolis-Hastings kernel. Input: current state. Output next state. |
A matrix with first d rows (d the dimension of the target density) the jump chain and last row the holding time for the jump process.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.