Application of Metropolis rule.
applyMetropolisRule(x, candid, fx, fcandid)A list with fields x (resulting sample), fx (resulting target) and move (did the chain move?).
numeric vector, current sample.
numeric vector, candidate sample.
data frame, a 1-row data frame with fields logPosterior, logPrior and logLikelihood evaluated for the current sample.
data frame, a 1-row data frame with fields logPosterior, logPrior and logLikelihood evaluated for the candidate sample.