pub struct Config<V: Value> { /* private fields */ }Expand description
Algorithm configuration parameters, passed to rkm::kmeans_lloyd to specify:
- Random number generator seed
- The maximum number of iterations to terminate the algorithm at
- The minimum delta for all means from iteration to iteration The algorithm will terminate if the maximum number of iterations is exceeded, or none of the means change by at least the minimum delta distance, or the algorithm converges.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for Config<V>where
V: Freeze,
impl<V> RefUnwindSafe for Config<V>where
V: RefUnwindSafe,
impl<V> Send for Config<V>
impl<V> Sync for Config<V>
impl<V> Unpin for Config<V>where
V: Unpin,
impl<V> UnwindSafe for Config<V>where
V: UnwindSafe,
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