Trait reductive::kmeans::KMeans[][src]

pub trait KMeans<A> {
    fn k_means(
        &self,
        instance_axis: Axis,
        k: usize,
        initial_centroids: impl InitialCentroids<A>,
        stop_condition: impl StopCondition<A>
    ) -> (Array2<A>, A); }
Expand description

Trait for types that implement k-means clustering.

Required methods

Perform k-means clustering.

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

Returns the k x d matrix of cluster centroids and the mean mean-squared error.

Implementations on Foreign Types

Implementors