RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
## RFoptions(seed=NA) to make them all random again
\dontrun{
RFoptions(circulant.maxmem=6e7)
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,,])
par(mfcol=c(1,1))
## the definition of RMparswmX is
RMparswmX <- function(nudiag, rho, var, scale, Aniso, proj) {
return(RMschur(M=rho, RMparswm(nudiag, var, scale, Aniso, proj)))
}
}
FinalizeExample()
Run the code above in your browser using DataLab