pub struct Clustering<'a, T> {
pub elements: &'a [T],
pub membership: Vec<usize>,
pub centroids: Vec<Centroid>,
}Expand description
This is the result of a kmeans clustering
Fields§
§elements: &'a [T]The set of elements that have been clustered (in that order)
membership: Vec<usize>The membership assignment membership[i] = y means that element[i] belongs to cluster y
centroids: Vec<Centroid>The centroids of the clusters in this given clustering
Auto Trait Implementations§
impl<'a, T> Freeze for Clustering<'a, T>
impl<'a, T> RefUnwindSafe for Clustering<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Clustering<'a, T>where
T: Sync,
impl<'a, T> Sync for Clustering<'a, T>where
T: Sync,
impl<'a, T> Unpin for Clustering<'a, T>
impl<'a, T> UnwindSafe for Clustering<'a, T>where
T: RefUnwindSafe,
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