public class WeightedKMeans extends Object
Constructor and Description |
---|
WeightedKMeans() |
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 List<Cluster> |
run(List<DataPoint> dataPointsArray,
int noOfClusters,
int maximumIterations,
int noOfDimensions) |
public static List<Cluster> run(List<DataPoint> dataPointsArray, int noOfClusters, int maximumIterations, int noOfDimensions)
public static Object[] getAssociatedCentroidInfo(DataPoint currentDatapoint, KMeansModel model)
currentDatapoint
- the input dataPoint for which the closest centroid needs to be foundCopyright © 2018 WSO2. All rights reserved.