Module l2

Source
Expand description

L2 (Euclidean) squared distance metric.

Returns the squared Euclidean distance to avoid the sqrt cost in comparisons. Range: [0.0, ∞).

Structs§

L2Distance
Squared Euclidean distance: $d(a, b) = \sum_i (a_i - b_i)^2$.