Learn R Programming

rkriging (version 1.0.2)

Evaluate.Kernel: Evaluate Kernel

Description

This function computes the kernel (correlation) matrix. Given the kernel class object and the input data \(X\) of size n, this function computes the corresponding \(n\times n\) kernel (correlation) matrix.

Usage

Evaluate.Kernel(kernel, X)

Value

The kernel (correlation) matrix of X evaluated by the kernel.

Arguments

kernel

a kernel class object

X

input data

Author

Chaofan Huang and V. Roshan Joseph

See Also

Get.Kernel.

Examples

Run this code
n <- 5
p <- 3
X <- matrix(rnorm(n*p), ncol=p)
lengthscale <- c(1:p)

kernel <- Gaussian.Kernel(lengthscale)
Evaluate.Kernel(kernel, X)

Run the code above in your browser using DataLab