set.seed(1)
d <- 5
A <- matrix(runif(d^2)*2-1, ncol=d)
precMat <- t(A) %*% A
initial <- rep(1, d)
results <- markovianZigzag(
nSample = 1000,
burnin = 1000,
mean = rep(0, d),
prec = precMat,
lowerBounds = rep(0, d),
upperBounds = rep(Inf, d)
)
Run the code above in your browser using DataLab