V2covmat: compute covariance matrix from V.ord Do not run this function...

View source: R/vecchia_prediction.R

V2covmatR Documentation

compute covariance matrix from V.ord Do not run this function for large n or n.p!!!

Description

compute covariance matrix from V.ord Do not run this function for large n or n.p!!!

Usage

V2covmat(preds)

Arguments

preds

Object returned by vecchia_prediction()

Value

Covariance matrix at all locations in original order

Examples

z=rnorm(5)
locs=matrix(1:5,ncol=1)
vecchia_specify=function(z,locs,m=5,locs.pred=(1:5)+.5)
V2covmat(vecchia_prediction(vecchia.approx,covparms=c(1,2,.5),nuggets=.2))

GPvecchia documentation built on June 22, 2024, 11:13 a.m.