k_spatial_iso: Spatial isotropic kernel

Description Usage Arguments Examples

View source: R/kernels.R

Description

Spatial isotropic kernel

Usage

1
k_spatial_iso(s, sp, param = list(s1 = 1, s2 = 1))

Arguments

s

Locations for which the kernel is calculated

sp

Locations for which the kernel is calculated

param

list of parameters specific to the kernel

Examples

1
2
3
4
5
6
7
x = seq(0,10,length.out = 4)
xd = expand.grid(x,x)
xd1 = xd[rep(1:nrow(xd), nrow(xd)),]
xd2 = xd[rep(1:nrow(xd), each = nrow(xd)),]
xdd = cbind(xd1,xd2)
param = list(s1 = 1, s2 = 10)
k = matrix(apply(xdd,1, function(x) k_spatial_iso(x[1:2],x[3:4],param = param)), ncol = nrow(xd))

ick003/GPspt documentation built on March 16, 2020, 3:34 a.m.