set.seed(0)
\dontrun{
RFoptions(circulant.maxmem=6e7, pri=5)
model <- RMparswmX(nudiag=c(1.3, 0.7, 2),
rho=matrix(nc=3, c(1, 0.5, 0.2, 0.5, 1, 0.6, 0.2, 0.6, 1)))
x.seq <- y.seq <- seq(-10,10,0.05)
simulated <- RFsimulate(model = model, x=x.seq, y=y.seq, grid=TRUE, n=1, spC=F)
par(mfcol=c(1, dim(simulated)[1]))
for (i in 1: dim(simulated)[1]) image(simulated[i,,])
## the definition of RMparswmX is
RMparswmX <- function(nudiag, rho, var, scale, Aniso, proj) {
return(RMschur(S=rho, RMparswm(nudiag, var, scale, Aniso, proj)))
}
}
Run the code above in your browser using DataLab