Struct linfa_nn::distance::LInfDist [−][src]
pub struct LInfDist;
Expand description
L-infinte or Chebyshev distance
Trait Implementations
Computes the distance between two points. For most spatial algorithms to work correctly, this metric must satisfy the Triangle Inequality. Read more
A faster version of the distance metric that keeps the order of the distance function. That
is, dist(a, b) > dist(c, d)
implies rdist(a, b) > rdist(c, d)
. For most algorithms this
is the same as distance
. Unlike distance
, this function does not need to satisfy
the Triangle Inequality. Read more
Converts the result of rdistance
to distance
Converts the result of distance
to rdistance
Auto Trait Implementations
impl RefUnwindSafe for LInfDist
impl UnwindSafe for LInfDist
Blanket Implementations
Mutably borrows from an owned value. Read more