org.apache.spark.mllib.clustering
Return the K-means cost (sum of squared distances of points to their nearest center) for this model on the given data.
Total number of clusters.
Maps given points to their cluster indices.
Maps given points to their cluster indices.
Returns the cluster index that a given point belongs to.
A clustering model for K-means. Each point belongs to the cluster with the closest center.