k_means(): Result
Performs the K-means clustering algorithm on a set of points.
k: number
- The number of clusters to form.
range: Range
- The range of possible values for each dimension of the points.
- Optional initial cluster centroids. If not provided or insufficient, random centroids will be generated.
optional
count: number = 0
- Optional counter for tracking the number of iterations. Default is 0.