[][src]Crate rkm

Traits

Value

Functions

kmeans_lloyd

Calculate means and cluster assignments for the given data and number of clusters (k). Returns a tuple containing the means (as a 2D ndarray) and a Vec of indices that map into the means ndarray and correspond elementwise to each input data point to give the cluster assignments for each data point.