Skip to main content

Distance

Trait Distance 

Source
pub trait Distance {
    // Required method
    fn distance(&self, other: &[f32], metric: DistanceMetric) -> f32;
}

Required Methods§

Source

fn distance(&self, other: &[f32], metric: DistanceMetric) -> f32

Implementations on Foreign Types§

Source§

impl Distance for Vec<f32>

Source§

fn distance(&self, other: &[f32], metric: DistanceMetric) -> f32

Source§

impl Distance for [f32]

Source§

fn distance(&self, other: &[f32], metric: DistanceMetric) -> f32

Implementors§