get_kernel_matrix: Construct a sparse kernel matrix

Description Usage Arguments Value Examples

View source: R/kernel.R

Description

Construct a sparse kernel matrix

Usage

1
get_kernel_matrix(s, dpc_grid, phi = NULL)

Arguments

s

Observation locations

dpc_grid

Discrete Process Convolution grid

phi

Optional kernel parameters

Value

List with sparse matrix (nrow = number of observations, ncol = number of gridpoints), plus metadata

Examples

1
2
3
s = data.frame(lon = 1:3, lat = 1:3)
dpc_grid = get_grid(c(1, 3), c(1, 3), 1)
get_kernel_matrix(s, dpc_grid)$mat

rtlemos/scallops documentation built on May 4, 2019, 7:43 p.m.