pub struct Distances {}
Expand description
Multitude of distance metric functions
Implementations§
source§impl Distances
impl Distances
sourcepub fn minkowski<T: Number>(p: u16) -> Minkowski<T>
pub fn minkowski<T: Number>(p: u16) -> Minkowski<T>
Minkowski distance, see Minkowski
p
- function order. Should be >= 1
sourcepub fn mahalanobis<T: Number, M: Array2<T>, C: Array2<f64> + LUDecomposable<f64>>(
data: &M
) -> Mahalanobis<T, C>
pub fn mahalanobis<T: Number, M: Array2<T>, C: Array2<f64> + LUDecomposable<f64>>( data: &M ) -> Mahalanobis<T, C>
Mahalanobis distance, see Mahalanobis
Auto Trait Implementations§
impl RefUnwindSafe for Distances
impl Send for Distances
impl Sync for Distances
impl Unpin for Distances
impl UnwindSafe for Distances
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more