Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


CVEK (version 0.1-2)

square_dist: Computing Square Distance between Two Sets of Variables

Description

Compute Squared Euclidean distance between two sets of variables with the same dimension.

Usage

square_dist(X1, X2 = NULL, l = 1)

Arguments

X1

(matrix, n1*p0) The first set of variables.

X2

(matrix, n2*p0) The second set of variables.

l

(numeric) A numeric number indicating the hyperparameter (flexibility) of a specific kernel.

Value

dist_sq

(matrix, n1*n2) The computed squared Euclidean distance.

References

The MIT Press. Gaussian Processes for Machine Learning, 2006.