pub struct Distance {
pub row1: Vec<f64>,
pub row2: Vec<f64>,
}
Fields§
§row1: Vec<f64>
§row2: Vec<f64>
Implementations§
Source§impl Distance
impl Distance
pub fn distance_euclidean(&self) -> f64
pub fn distance_manhattan(&self) -> f64
pub fn distance_cosine(&self) -> f64
pub fn distance_chebyshev(&self) -> f64
Auto Trait Implementations§
impl Freeze for Distance
impl RefUnwindSafe for Distance
impl Send for Distance
impl Sync for Distance
impl Unpin for Distance
impl UnwindSafe for Distance
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