[−][src]Trait acap::distance::Distance
A distance between two points.
An implementation may be an actual numerical distance, or an order embedding of the true
distance. This allows for optimizations whenever distances can be compared more efficiently
than their exact values can be computed, as is the case for Euclidean distance. Implementors
must satisfy, for all distances x
and y
:
x < y
iffx.value() < y.value()
x.value() < y
iffx.value() < y.value()
x < y.value()
iffx.value() < y.value()
Associated Types
Loading content...Provided methods
Loading content...Implementors
impl Distance for EuclideanDistance<f32>
[src]
impl Distance for EuclideanDistance<f64>
[src]
impl Distance for EuclideanDistance<i16>
[src]
impl Distance for EuclideanDistance<i32>
[src]
impl Distance for EuclideanDistance<i64>
[src]
impl Distance for EuclideanDistance<isize>
[src]
impl<T: Value> Distance for T
[src]
Any numerical distance value can be a Distance.