GPgen: Conversion from a long dataframe to a sptm object

Description Usage Arguments Examples

View source: R/GPgen.R

Description

This function allows you to calculate a Gaussian process kernel

Usage

1
GPgen(xd, param, nb, kernel)

Arguments

xd

Location of the GP prediction

param

list of parameters, with the right naming convention

nb

Number of GP to be generated

kernel

list of kernel used to generate the GPs.

Examples

1
2
3
4
5
6
7
xd = expand.grid(seq(0,10,length.out = 10),seq(0,10,length.out = 10))
param = list(list(s1=2, s2=5))
nb = 1
kernel = list(k_spatial)
attr(kernel, "type") <- "spatial"
tt = GPgen(xd, param, nb, kernel)
image(matrix(tt$f, ncol = 10,byrow=TRUE))

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