K_wrap: Wrapper for kernel calculation

Description Usage Arguments Examples

View source: R/utils.R

Description

Wrapper for kernel calculation

Usage

1
K_wrap(paramList, y, kernelList, xList)

Arguments

paramList

list of parameters

y

observations

kernelList

list of kernels

xList

list of features (time, location, features)

Examples

1
2
3
4
5
6
7
kernelList = list(k_spatial_iso)
paramList =  list(list(s1 = 1, s2 = 2), sigma_noise = 0.2)
s = expand.grid(seq(0,10,1), seq(0,10,1))
y = exp( -1/5 * ((s[,1]-5)^2+(s[,2]-5)^2))
xList = list(s)
K = K_wrap(paramList, y, kernelList,xList)
persp(matrix(K[,3], ncol=11))

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