pub struct KmeansOptions {
pub k: usize,
pub max_iterations: usize,
pub tolerance: f64,
pub metric: DistanceMetric,
pub init_method: InitMethod,
pub seed: Option<u64>,
}Expand description
Options for K-means clustering
Fields§
§k: usizeNumber of clusters
max_iterations: usizeMaximum number of iterations
tolerance: f64Convergence tolerance
metric: DistanceMetricDistance metric
init_method: InitMethodInitialization method
seed: Option<u64>Random seed for reproducibility
Trait Implementations§
Source§impl Clone for KmeansOptions
impl Clone for KmeansOptions
Source§fn clone(&self) -> KmeansOptions
fn clone(&self) -> KmeansOptions
Returns a duplicate of the value. Read more
1.0.0 · 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 KmeansOptions
impl Debug for KmeansOptions
Auto Trait Implementations§
impl Freeze for KmeansOptions
impl RefUnwindSafe for KmeansOptions
impl Send for KmeansOptions
impl Sync for KmeansOptions
impl Unpin for KmeansOptions
impl UnsafeUnpin for KmeansOptions
impl UnwindSafe for KmeansOptions
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