org.apache.spark.mllib.clustering
A clustering model for K-means. Each point belongs to the cluster with the closest center.
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.
Return 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.