Struct linfa_nn::distance::LpDist [−][src]
pub struct LpDist<F: Float>(_);
Expand description
L-p or Minkowsky 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<F> RefUnwindSafe for LpDist<F> where
F: RefUnwindSafe,
impl<F> UnwindSafe for LpDist<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more