kmeans

Function kmeans 

Source
pub fn kmeans<T: Elem>(k: usize, elems: &[T], iter: usize) -> Clustering<'_, T>
Expand description

This function returns a clustering that groups the given set of ‘elems’ in ‘k’ clusters and will at most perform ‘iter’ iterations before stopping