## Create a sample of size 100 for a
## Gaussian distribution
mvpdf <- function (x) { exp(-sum(x^2)) }
x <- urhitro(20, dim=2, pdf=mvpdf)
x
## use:
## mode at (0,0)
## thinning factor 3
## (only every 3rd vector in the sequence is returned)
## burn-in of length 100
## (the first 1000 vectors in the sequence are discarded)
x <- urhitro(20, dim=2, pdf=mvpdf, mode=c(0,0), thinning=3, burnin=100)
xRun the code above in your browser using DataLab