public class ClusterUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static weka.core.Instances |
getPrimingDataForDistanceFunction(weka.core.Instances headerWithSummary)
Compute priming data for a distance function (i.e.
|
static java.util.List<weka.core.Instances> |
weightSketchesAndClusterToFinalStartPoints(int numRuns,
int numClusters,
CentroidSketch[] finalSketches,
KMeansReduceTask[] statsForSketches,
boolean debug)
Utility method to perform the last phase of the k-means|| initialization -
i.e.
|
public static java.util.List<weka.core.Instances> weightSketchesAndClusterToFinalStartPoints(int numRuns,
int numClusters,
CentroidSketch[] finalSketches,
KMeansReduceTask[] statsForSketches,
boolean debug)
throws DistributedWekaException
numRuns - number of runs of k-means being donenumClusters - the requested number of clusters (and thus starting
points for k-means)finalSketches - the final centroid sketches produced by the first
phase of k-means||statsForSketches - the clustering statistics for the final sketchesdebug - true if debugging info is to be outputDistributedWekaException - if a problem occurspublic static weka.core.Instances getPrimingDataForDistanceFunction(weka.core.Instances headerWithSummary)
throws DistributedWekaException
headerWithSummary - header with summary attributesDistributedWekaException - if a problem occurs