Function kmeans

Source
pub fn kmeans<T, const K: usize>(data: &[T]) -> [T; K]
where T: Copy + Into<i64> + PartialEq + PartialOrd, i64: TryInto<T>, <i64 as TryInto<T>>::Error: Debug,
Expand description

Find k-means for a sorted slice of integers that can be summed in i64.