distanceMatrix: Calculate generalised distances

Description Usage Arguments Details Value

Description

Calculate the generalised distance between vectors t and t' using an anisotropy matrix A.

Usage

1
2
3
4
5
6
7
distMat(input, inputNew, A, power)

distMatSq(input, A, power)

distMatLinear(input, inputNew, A)

distMatLinearSq(input, A)

Arguments

input

Vector of the input coordinate t

inputNew

Vector of the input coordinate t'

A

Anisotropy matrix A

power

Power value p

Details

The distMatSq and distMatLinearSq functions are used when input vectors t and t' are identical, returning a symmetric matrix.

When distMat and distMatSq functions are used in powered exponential kernels, power=1 gives the exponential kernel and power=2 gives the squared exponential one.

distMatLinear and distMatLinearSq functions are used in the linear covariance kernel.

Value

A matrix


GPFDA documentation built on Jan. 29, 2021, 5:14 p.m.