Function acap::chebyshev::chebyshev_distance [−][src]
pub fn chebyshev_distance<T, U>(x: T, y: U) -> T::Value where
T: Coordinates,
U: Coordinates<Value = T::Value>,
Expand description
Compute the Chebyshev distance between two points.
\begin{aligned}
\mathrm{chebyshev\_distance}(x, y) &= \|x - y\|_\infty \\
&= \max_i |x_i - y_i|
\end{aligned}