pub fn kmeans_clustering(
x: &[f64],
y: &[f64],
config: &KMeansConfig,
) -> KMeansResultExpand description
Run k-means clustering on 2D points.
§Arguments
x- X-coordinates of data points.y- Y-coordinates of data points.config- Algorithm configuration (k, max iterations, threshold).
§Panics
Panics if x and y have different lengths, if either is empty,
or if k is zero or greater than the number of points.