#[repr(u32)]pub enum cuvsKMeansInitMethod {
KMeansPlusPlus = 0,
Random = 1,
Array = 2,
}Expand description
@defgroup kmeans_c_params k-means hyperparameters @{
Variants§
KMeansPlusPlus = 0
Sample the centroids using the kmeans++ strategy
Random = 1
Sample the centroids uniformly at random
Array = 2
User provides the array of initial centroids
Trait Implementations§
Source§impl Clone for cuvsKMeansInitMethod
impl Clone for cuvsKMeansInitMethod
Source§fn clone(&self) -> cuvsKMeansInitMethod
fn clone(&self) -> cuvsKMeansInitMethod
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 cuvsKMeansInitMethod
Source§impl Debug for cuvsKMeansInitMethod
impl Debug for cuvsKMeansInitMethod
impl Eq for cuvsKMeansInitMethod
Source§impl Hash for cuvsKMeansInitMethod
impl Hash for cuvsKMeansInitMethod
Source§impl PartialEq for cuvsKMeansInitMethod
impl PartialEq for cuvsKMeansInitMethod
Source§fn eq(&self, other: &cuvsKMeansInitMethod) -> bool
fn eq(&self, other: &cuvsKMeansInitMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for cuvsKMeansInitMethod
Auto Trait Implementations§
impl Freeze for cuvsKMeansInitMethod
impl RefUnwindSafe for cuvsKMeansInitMethod
impl Send for cuvsKMeansInitMethod
impl Sync for cuvsKMeansInitMethod
impl Unpin for cuvsKMeansInitMethod
impl UnsafeUnpin for cuvsKMeansInitMethod
impl UnwindSafe for cuvsKMeansInitMethod
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