pub struct KMeansModel {
pub centroids: Vec<Vec<f64>>,
pub assignments: Vec<usize>,
}Expand description
Inspectable k-means centroids and stable cluster assignments.
Fields§
§centroids: Vec<Vec<f64>>Lexicographically ordered centroids.
assignments: Vec<usize>Cluster index for every input point, in input order.
Trait Implementations§
Source§impl Clone for KMeansModel
impl Clone for KMeansModel
Source§fn clone(&self) -> KMeansModel
fn clone(&self) -> KMeansModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KMeansModel
impl Debug for KMeansModel
Source§impl PartialEq for KMeansModel
impl PartialEq for KMeansModel
impl StructuralPartialEq for KMeansModel
Auto Trait Implementations§
impl Freeze for KMeansModel
impl RefUnwindSafe for KMeansModel
impl Send for KMeansModel
impl Sync for KMeansModel
impl Unpin for KMeansModel
impl UnsafeUnpin for KMeansModel
impl UnwindSafe for KMeansModel
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