Learn R Programming

GPrank (version 0.1.4)

fixedvarianceKernCompute: fixedvarianceKernCompute

Description

Function for computing the fixed variance kernel.

Usage

fixedvarianceKernCompute(kern, x, x2)

Arguments

kern

GP kernel structure which contains the fixed variances to be included in the fixedvariance kernel.

x

One-column matrix which contains the input values for the rows of the kernel.

x2

One-column matrix which contains the input values for the columns of the kernel. If missing, a square matrix is created with x on both rows and columns.

Value

Return kernel with the fixed variances in the diagonal, and zeros in the off-diagonal elements.