public class KMeansClusterer extends Object
Constructor and Description |
---|
KMeansClusterer() |
Modifier and Type | Method and Description |
---|---|
static Object[] |
getAssociatedCentroidInfo(DataPoint currentDatapoint,
KMeansModel model)
similar to findAssociatedCluster method but return an Object[] array with the distance
to closest centroid and the coordinates of the closest centroid
|
static void |
train(LinkedList<DataPoint> dataPointsArray,
int numberOfEventsToRetrain,
double decayRate,
ExecutorService executorService,
KMeansModel model,
int numberOfClusters,
int maximumIterations,
int dimensionality) |
public static void train(LinkedList<DataPoint> dataPointsArray, int numberOfEventsToRetrain, double decayRate, ExecutorService executorService, KMeansModel model, int numberOfClusters, int maximumIterations, int dimensionality)
public static Object[] getAssociatedCentroidInfo(DataPoint currentDatapoint, KMeansModel model)
Copyright © 2017 WSO2. All rights reserved.