Distance Measures

Distances API Reference

Functions

(K::Kernel)(X)

This is a convenience function to allow for one-line construction of kernels from a Kernel object K and new data X.

source
EuclideanDistance(X, Y)

Returns the euclidean distance matrix of X and Y such that the columns are the samples in Y.

source
EuclideanDistance(X)

Returns the Grahm aka the euclidean distance matrix of X.

source
GaussianKernel(X, Y, sigma)

Creates a Gaussian/RBF kernel from Arrays X and Y with hyperparameter sigma.

source
GaussianKernel(X, sigma)

Creates a Gaussian/RBF kernel from Array X using hyperparameter sigma.

source
LinearKernel(X, Y, c)

Creates a Linear kernel from Arrays X and Y with hyperparameter C.

source
LinearKernel(X, c)

Creates a Linear kernel from Array X and hyperparameter C.

source
ManhattanDistance(X, Y)

Returns the Manhattan distance matrix of X and Y such that the columns are the samples in Y.

source
ManhattanDistance(X)

Returns the Manhattan distance matrix of X.

source
SquareEuclideanDistance(X, Y)

Returns the squared euclidean distance matrix of X and Y such that the columns are the samples in Y.

source
SquareEuclideanDistance(X)

Returns the squared Grahm aka the euclidean distance matrix of X.

source