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§
source§impl<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§
source§impl<F: Float> Ord for Sample<F>
impl<F: Float> Ord for Sample<F>
source§impl<F: Float> PartialEq for Sample<F>
impl<F: Float> PartialEq for Sample<F>
source§impl<F: Float> PartialOrd for Sample<F>
impl<F: Float> PartialOrd for Sample<F>
1.0.0 · source§fn 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 moreimpl<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§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.