Function acap::euclid::euclidean_distance [−][src]
pub fn euclidean_distance<T, U>(x: T, y: U) -> EuclideanDistance<T::Value> where
T: Coordinates,
U: Coordinates<Value = T::Value>,
Expand description
Compute the Euclidean distance between two points.
\begin{aligned}
\mathrm{euclidean\_distance}(x, y) &= \|x - y\|_2 \\
&= \sqrt{\sum_i (x_i - y_i)^2}
\end{aligned}