Struct linfa_clustering::Sample
source · [−]pub struct Sample<F> { /* private fields */ }
Expand description
This struct represents a data point in the dataset with it’s associated distances obtained from the OPTICS analysis
Implementations
sourceimpl<F: Float> Sample<F>
impl<F: Float> Sample<F>
sourcepub fn reachability_distance(&self) -> &Option<F>
pub fn reachability_distance(&self) -> &Option<F>
The reachability distance of a sample is the distance between the point and it’s cluster core or another point whichever is larger.
sourcepub fn core_distance(&self) -> &Option<F>
pub fn core_distance(&self) -> &Option<F>
The distance to the nth closest point where n is the minimum points to form a cluster.
Trait Implementations
sourceimpl<F: Float> Ord for Sample<F>
impl<F: Float> Ord for Sample<F>
sourceimpl<F: Float> PartialOrd<Sample<F>> for Sample<F>
impl<F: Float> PartialOrd<Sample<F>> for Sample<F>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<F: Float> Eq for Sample<F>
Auto Trait Implementations
impl<F> RefUnwindSafe for Sample<F> where
F: RefUnwindSafe,
impl<F> Send for Sample<F> where
F: Send,
impl<F> Sync for Sample<F> where
F: Sync,
impl<F> Unpin for Sample<F> where
F: Unpin,
impl<F> UnwindSafe for Sample<F> where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.