Click or drag to resize
Accord.NET (logo)

GaussianDistance Method (SparseDouble, SparseDouble)

Computes the squared distance in feature space between two points given in input space.

Namespace:  Accord.Statistics.Kernels
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public double Distance(
	Sparse<double> x,
	Sparse<double> y
)
Request Example View Source

Parameters

x
Type: Accord.MathSparseDouble
Vector x in input space.
y
Type: Accord.MathSparseDouble
Vector y in input space.

Return Value

Type: Double
Squared distance between x and y in feature (kernel) space.

Implements

IDistanceT, UDistance(T, U)
See Also