Trait reductive::kmeans::KMeansWithCentroids[][src]

pub trait KMeansWithCentroids<A> {
    fn kmeans_with_centroids(
        &self,
        instance_axis: Axis,
        centroids: ArrayViewMut2<'_, A>,
        stop_condition: impl StopCondition<A>
    ) -> A; }
Expand description

Trait for k-means clustering with an initial set of centroids.

Performs k-means clustering on the matrix of instances along instance_axis using the given centroids.

Returns the mean squared error.

Required methods

Implementations on Foreign Types

Implementors