if (FALSE) {
model.list <- list('mean' = 0,
'std.dev' = formula( ~ 1 + cov_x + cov_y),
'scale' = formula( ~ 1 + cov_x + cov_y),
'aniso' = 0,
'tilt' = 0,
'smooth' = 0.5,
'nugget' = -Inf)
coco_object <- coco(type = 'dense',
data = holes[[1]][1:1000,],
locs = as.matrix(holes[[1]][1:1000,1:2]),
z = holes[[1]][1:1000,]$z,
model.list = model.list)
coco_sim <- cocoSim(coco.object = coco_object,
pars = c(0,0.25,0.25, # pars related to std.dev
log(0.25),1,-1), # pars related to scale
n = 1,
standardize = TRUE)
fields::quilt.plot(coco_object@locs,coco_sim)
}
Run the code above in your browser using DataLab