Crate rkm

Source

Structs§

Config
Algorithm configuration parameters, passed to rkm::kmeans_lloyd to specify:

Traits§

Value
Numeric value trait, defines the types that can be used for the value of each dimension in a data point.

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.
kmeans_lloyd_with_config
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. Takes a Config object which can be used to optionally specify:

Type Aliases§

RandomSeed