pub trait VectorMetric<T> {
    fn metric(&self, v1: &Vector<T>, v2: &Vector<T>) -> T;
}
Expand description

Trait for vector metrics.

Required Methods

Computes the metric distance between two vectors.

Implementors

The induced vector metric

Given a norm N, the induced vector metric M computes the metric distance, d, between two vectors v1 and v2 as follows:

d = M(v1, v2) = N(v1 - v2)