Function flechasdb::kmeans::cluster

source ·
pub fn cluster<T, VS>(vs: &VS, k: NonZeroUsize) -> Result<Codebook<T>, Error>where
    T: Scalar,
    VS: VectorSet<T>,
Expand description

Performs k-means clustering.

Fails if vs has fewer vectors than k.