pub struct Forgy;
Expand description
The Forgy initialization scheme.
Trait Implementations
sourceimpl Initializer for Forgy
impl Initializer for Forgy
sourcefn init_centroids(
&self,
k: usize,
inputs: &Matrix<f64>
) -> LearningResult<Matrix<f64>>
fn init_centroids(
&self,
k: usize,
inputs: &Matrix<f64>
) -> LearningResult<Matrix<f64>>
Initialize the centroids for the initial state of the K-Means model. Read more
Auto Trait Implementations
impl RefUnwindSafe for Forgy
impl Send for Forgy
impl Sync for Forgy
impl Unpin for Forgy
impl UnwindSafe for Forgy
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more