public class BallKMeans extends Object implements Iterable<Centroid>
Constructor and Description |
---|
BallKMeans(UpdatableSearcher searcher,
int numClusters,
int maxNumIterations) |
BallKMeans(UpdatableSearcher searcher,
int numClusters,
int maxNumIterations,
boolean kMeansPlusPlusInit,
int numRuns) |
BallKMeans(UpdatableSearcher searcher,
int numClusters,
int maxNumIterations,
double trimFraction,
boolean kMeansPlusPlusInit,
boolean correctWeights,
double testProbability,
int numRuns) |
Modifier and Type | Method and Description |
---|---|
UpdatableSearcher |
cluster(List<? extends WeightedVector> datapoints)
Clusters the datapoints in the list doing either random seeding of the centroids or k-means++.
|
Iterator<Centroid> |
iterator() |
Pair<List<? extends WeightedVector>,List<? extends WeightedVector>> |
splitTrainTest(List<? extends WeightedVector> datapoints) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public BallKMeans(UpdatableSearcher searcher, int numClusters, int maxNumIterations)
public BallKMeans(UpdatableSearcher searcher, int numClusters, int maxNumIterations, boolean kMeansPlusPlusInit, int numRuns)
public BallKMeans(UpdatableSearcher searcher, int numClusters, int maxNumIterations, double trimFraction, boolean kMeansPlusPlusInit, boolean correctWeights, double testProbability, int numRuns)
public Pair<List<? extends WeightedVector>,List<? extends WeightedVector>> splitTrainTest(List<? extends WeightedVector> datapoints)
public UpdatableSearcher cluster(List<? extends WeightedVector> datapoints)
datapoints
- the points to be clustered.Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.