getCovMatrix {cocons} | R Documentation |
Covariance matrix for "coco" class
Description
Compute the covariance matrix of coco.object
.
Usage
getCovMatrix(coco.object, type = 'global', index = NULL)
Arguments
coco.object |
|
type |
|
index |
|
Value
(matrix
or S4
) a n x n covariance matrix (for 'dense' coco objects) or a S4 spam object (for 'sparse' coco objects).
Author(s)
Federico Blasi
Examples
## 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)
[Package cocons version 0.1.4 Index]