public class LocalKMeans
extends Object
| Constructor and Description |
|---|
LocalKMeans() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.spark.mllib.clustering.VectorWithNorm[] |
kMeansPlusPlus(int seed,
org.apache.spark.mllib.clustering.VectorWithNorm[] points,
double[] weights,
int k,
int maxIterations)
Run K-means++ on the weighted point set
points. |
public static org.apache.spark.mllib.clustering.VectorWithNorm[] kMeansPlusPlus(int seed,
org.apache.spark.mllib.clustering.VectorWithNorm[] points,
double[] weights,
int k,
int maxIterations)
points. This first does the K-means++
initialization procedure and then rounds of Lloyd's algorithm.seed - (undocumented)points - (undocumented)weights - (undocumented)k - (undocumented)maxIterations - (undocumented)