Trait rustml::distance::Distance [] [src]

pub trait Distance<T> {
    fn compute(a: &[T], b: &[T]) -> Option<T>;
}

Computes the distance between two vectors.

Required Methods

fn compute(a: &[T], b: &[T]) -> Option<T>

Computes the distance between vector a and b and returns None on failure.

Implementors