One k-means cluster: its centroid and the points assigned to it.
Note: kmeans's current return value populates centroid but leaves points empty — callers wanting cluster membership must re-bucket against the returned centroids.
centroid
points
Cluster center after convergence.
Points assigned to this cluster. May be empty in returned values.
One k-means cluster: its centroid and the points assigned to it.
Note: kmeans's current return value populates
centroidbut leavespointsempty — callers wanting cluster membership must re-bucket against the returned centroids.