pub struct KMeansRestartEvidence {
pub restart: usize,
pub seed: u64,
pub inertia: f64,
pub iterations: usize,
pub converged: bool,
pub empty_cluster_repairs: u64,
pub work: u64,
pub termination: KMeansTermination,
}Expand description
Convergence evidence for one bounded restart.
Fields§
§restart: usizeZero-based restart index.
seed: u64Derived seed used by k-means++ initialization.
inertia: f64Final within-cluster sum of squared distances.
iterations: usizeNumber of complete Lloyd updates.
converged: boolWhether convergence, rather than a bound, stopped the restart.
empty_cluster_repairs: u64Number of empty centroids deterministically reseeded from worst-fit points.
work: u64Distance-evaluation work charged by this restart.
termination: KMeansTerminationConcrete termination reason.
Trait Implementations§
Source§impl Clone for KMeansRestartEvidence
impl Clone for KMeansRestartEvidence
Source§fn clone(&self) -> KMeansRestartEvidence
fn clone(&self) -> KMeansRestartEvidence
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 KMeansRestartEvidence
impl Debug for KMeansRestartEvidence
Source§impl PartialEq for KMeansRestartEvidence
impl PartialEq for KMeansRestartEvidence
impl StructuralPartialEq for KMeansRestartEvidence
Auto Trait Implementations§
impl Freeze for KMeansRestartEvidence
impl RefUnwindSafe for KMeansRestartEvidence
impl Send for KMeansRestartEvidence
impl Sync for KMeansRestartEvidence
impl Unpin for KMeansRestartEvidence
impl UnsafeUnpin for KMeansRestartEvidence
impl UnwindSafe for KMeansRestartEvidence
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