Struct linfa_nn::distance::L2Dist [−][src]
pub struct L2Dist;
Expand description
L2 or Euclidean 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 L2Dist
impl UnwindSafe for L2Dist
Blanket Implementations
Mutably borrows from an owned value. Read more