RFoptions(seed=0) ## *ANY* simulation will have the random seed 0; set
## RFoptions(seed=NA) to make them all random again
StartExample()
\dontrun{
x <- seq(0,25, 0.02)
model <- RPcoins(RMspheric())
z <- RFsimulate(model, x, x, spConform=FALSE) # takes 20 sec
Print(sd(as.vector(z)), mean(z))
image(z)
### Gaussian field approximates by Poisson fields
x <- seq(0,10, 0.02)
for (intensity in c(1, 10, 100)) {
z <- RFsimulate(x=x, model=RPcoins(RMspheric(), intensity = intensity))
plot(z)
}
}
FinalizeExample()
Run the code above in your browser using DataLab