public class CoresetKMeans extends Object
Constructor and Description |
---|
CoresetKMeans() |
Modifier and Type | Method and Description |
---|---|
static List<double[]> |
generatekMeansPlusPlusCentroids(int k,
List<double[]> input,
Random random)
Generates the initial centroids like the k-means++ algorithm.
|
static double |
kMeans(List<double[]> centroids,
List<double[]> input)
Executes the k-means algorithm with the given initial centroids until the
costs converges.
|
public static List<double[]> generatekMeansPlusPlusCentroids(int k, List<double[]> input, Random random)
k
- number of centroidsinput
- input clusteringrandom
- instance to generate a stream of pseudorandom numbersCopyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.