getCovMatrix | R Documentation |
Compute the covariance matrix of coco.object
.
getCovMatrix(coco.object, type = 'global', index = NULL)
coco.object |
|
type |
|
index |
|
(matrix
or S4
) a n x n covariance matrix (for 'dense' coco objects) or a S4 spam object (for 'sparse' coco objects).
Federico Blasi
## Not run:
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' = 3/2,
'nugget' = -Inf)
coco_object <- coco(type = 'dense',
data = holes[[1]][1:100,],
locs = as.matrix(holes[[1]][1:100,1:2]),
z = holes[[1]][1:100,]$z,
model.list = model.list)
optim_coco <- cocoOptim(coco_object,
boundaries = getBoundaries(coco_object,
lower.value = -3, 3))
getCovMatrix(optim_coco)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.