spatial_cor: Approximate spatial correlation

View source: R/utility.R

spatial_corR Documentation

Approximate spatial correlation

Description

Extract the approximated spatial correlation between one coordinate and other coordinates using a sparse precision and SPDE mesh

Usage

spatial_cor(Q, mesh, coord, pred)

Arguments

Q

sparse precision matrix

mesh

SPDE mesh

coord

vector of length-2 with spatial coordinates for focal point

pred

matrix with two columns and multiple rows, with location for points to predict correlation

Value

A vector with length nrow(pred) giving the spatial correlation


tinyVAST documentation built on Sept. 13, 2025, 5:07 p.m.