pub struct Clusters {
pub matched: Vec<Vec<usize>>,
pub unmatched: Vec<usize>,
}Expand description
Result of clustering: groups of items that merged into clusters, plus the singletons that did not.
All members are referenced by index into the slice passed to cluster or
cluster_with_candidates. Use the indices to project back to whatever
payload type you care about.
Fields§
§matched: Vec<Vec<usize>>Groups of 2+ items whose pairwise distances were within threshold.
unmatched: Vec<usize>Items that did not cluster with any other.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Clusters
impl RefUnwindSafe for Clusters
impl Send for Clusters
impl Sync for Clusters
impl Unpin for Clusters
impl UnsafeUnpin for Clusters
impl UnwindSafe for Clusters
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more