clusterKMeans

Cluster the points into k clusters using K-means clustering.

Return

A map of size k from centroid to cluster

Since

1.4.1

Parameters

k

The number of clusters

points

The points to cluster