R/math_functions.R
squared_distance.Rd
Squared Euclidean distance
squared_distance(x, y, eps = 1e-08)
A numeric vector.
A small value added for numerical stability (default is 1e-8).
The squared Euclidean distance between x and y.