# In this example, we compute mu(B,z) for Whittle Matern spatial model
# from 10 sites uniformly distributed on the square [0,2]x[0,2]
mubz.normal(b=c(TRUE,TRUE,FALSE,FALSE,TRUE,FALSE,FALSE,FALSE,FALSE,TRUE),
z=rep(1,10),params=c(1,2),
spatial=list(sites=matrix(2*runif(20),ncol=2),family=spatialWhittleMatern))
Run the code above in your browser using DataLab