## Not run:
# coord1 <- function (xx) { xx[1] }
# ss <- function (xx) { sum(xx) }
# pp <- function (xx) { prod(xx) }
# statsFuncList <- list(coord1, ss, pp)
# maxTemperObj <-
# with(VShapedFuncGenerator(-13579),
# findMaxTemper(nIters = 15000,
# statsFuncList = statsFuncList,
# temperLadder = c(20, 15, 10, 5, 1),
# startingVals = c(0, 0),
# logTarDensFunc = logTarDensFunc,
# MHPropNewFunc = MHPropNewFunc,
# levelsSaveSampFor = seq_len(5),
# doFullAnal = TRUE,
# verboseLevel = 1))
# print(maxTemperObj)
# print(names(maxTemperObj))
# with(maxTemperObj,
# {
# par(mfcol = c(3, 3))
# for (ii in seq_along(levelsSaveSampFor)) {
# main <- paste('temper:', round(temperLadder[levelsSaveSampFor[ii]], 3))
# plot(draws[ , , ii],
# xlim = c(-10, 25),
# ylim = c(-10, 10),
# pch = '.',
# ask = FALSE,
# main = as.expression(main),
# xlab = as.expression(substitute(x[xii], list(xii = 1))),
# ylab = as.expression(substitute(x[xii], list(xii = 2))))
# }
# })
# ## End(Not run)
Run the code above in your browser using DataLab