Skip to main content

maximum_distance

Function maximum_distance 

Source
pub fn maximum_distance<T: Float>(
    x: &[T],
    y: &[T],
) -> Result<T, IncompatiblePointsError>
Expand description

Computes the maximum distance (Chebyshev distance or L^infinity distance) between x and y.

An IncompatiblePointsError is returned when x and y have different lengths.