|
SparseLinearSquaredEuclidean Method
|
Computes the squared Euclidean distance of two vectors given in sparse representation.
Namespace:
Accord.Statistics.Kernels.Sparse
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public static double SquaredEuclidean(
double[] x,
double[] y
)
Public Shared Function SquaredEuclidean (
x As Double(),
y As Double()
) As Double
Request Example
View SourceParameters
- x
- Type: SystemDouble
The first vector x. - y
- Type: SystemDouble
The second vector y.
Return Value
Type:
Double
The squared Euclidean distance
d² = |x - y|² between the given vectors.
See Also