pub enum KMeansTermination {
Converged,
IterationLimit,
WorkLimit,
}Expand description
Why one k-means restart stopped.
Variants§
Converged
Assignments or centroid displacement met the convergence policy.
IterationLimit
The restart exhausted its iteration count.
WorkLimit
The shared work budget could not admit another complete Lloyd step.
Trait Implementations§
Source§impl Clone for KMeansTermination
impl Clone for KMeansTermination
Source§fn clone(&self) -> KMeansTermination
fn clone(&self) -> KMeansTermination
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 moreimpl Copy for KMeansTermination
Source§impl Debug for KMeansTermination
impl Debug for KMeansTermination
impl Eq for KMeansTermination
Source§impl PartialEq for KMeansTermination
impl PartialEq for KMeansTermination
impl StructuralPartialEq for KMeansTermination
Auto Trait Implementations§
impl Freeze for KMeansTermination
impl RefUnwindSafe for KMeansTermination
impl Send for KMeansTermination
impl Sync for KMeansTermination
impl Unpin for KMeansTermination
impl UnsafeUnpin for KMeansTermination
impl UnwindSafe for KMeansTermination
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