Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Gaussian

Gaussian Kernel R6 class


Description

Gaussian Kernel R6 class

Gaussian Kernel R6 class

Format

R6Class object.

Value

Object of R6Class with methods for fitting GP model.

Super classes

Methods

Public methods


Method k()

Calculate covariance between two points

Usage
Gaussian$k(x, y = NULL, beta = self$beta, s2 = self$s2, params = NULL)
Arguments
x

vector.

y

vector, optional. If excluded, find correlation of x with itself.

beta

Correlation parameters.

s2

Variance parameter.

params

parameters to use instead of beta and s2.


Method dC_dparams()

Derivative of covariance with respect to parameters

Usage
Gaussian$dC_dparams(params = NULL, X, C_nonug, C, nug)
Arguments
params

Kernel parameters

X

matrix of points in rows

C_nonug

Covariance without nugget added to diagonal

C

Covariance with nugget

nug

Value of nugget


Method C_dC_dparams()

Calculate covariance matrix and its derivative with respect to parameters

Usage
Gaussian$C_dC_dparams(params = NULL, X, nug)
Arguments
params

Kernel parameters

X

matrix of points in rows

nug

Value of nugget


Method dC_dx()

Derivative of covariance with respect to X

Usage
Gaussian$dC_dx(XX, X, theta, beta = self$beta, s2 = self$s2)
Arguments
XX

matrix of points

X

matrix of points to take derivative with respect to

theta

Correlation parameters

beta

log of theta

s2

Variance parameter


Method d2C_dx2()

Second derivative of covariance with respect to X

Usage
Gaussian$d2C_dx2(XX, X, theta, beta = self$beta, s2 = self$s2)
Arguments
XX

matrix of points

X

matrix of points to take derivative with respect to

theta

Correlation parameters

beta

log of theta

s2

Variance parameter


Method d2C_dudv()

Second derivative of covariance with respect to X and XX each once.

Usage
Gaussian$d2C_dudv(XX, X, theta, beta = self$beta, s2 = self$s2)
Arguments
XX

matrix of points

X

matrix of points to take derivative with respect to

theta

Correlation parameters

beta

log of theta

s2

Variance parameter


Method d2C_dudv_ueqvrows()

Second derivative of covariance with respect to X and XX when they equal the same value

Usage
Gaussian$d2C_dudv_ueqvrows(XX, theta, beta = self$beta, s2 = self$s2)
Arguments
XX

matrix of points

theta

Correlation parameters

beta

log of theta

s2

Variance parameter


Method clone()

The objects of this class are cloneable with this method.

Usage
Gaussian$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

k1 <- Gaussian$new(beta=0)

GauPro

Gaussian Process Fitting

v0.2.4
GPL-3
Authors
Collin Erickson
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.