Class KMean
java.lang.Object
jwat.workloadAnalysis.clustering.kMean.KMean
- All Implemented Interfaces:
JWATConstants, Clustering
K-means clustering algorithm of JWAT: partitions the observations into k clusters around their centroids.
-
Field Summary
Fields inherited from interface JWATConstants
BUTTONSIZE, DATE, defaultFormat, EXAMPLE_PATH, FITTING_EXPO_PANEL, FITTING_INPUT_PANEL, FITTING_PARETO_PANEL, FUZZYK, HTML_FONT_SMALL, HTML_FONT_TIT_END_NO_CAPO, INPUT_MSG_ABORT, INPUT_MSG_ABORT_WRONG_FORMAT, INPUT_MSG_FAIL, KMEANS, LOG_FILE_NAME, NUMERIC, STRING, TRAFFIC_EPOCH_PANEL, TRAFFIC_GRAPH_PANEL, TRAFFIC_GRAPHARRIVAL_PANEL, TRAFFIC_INPUT_PANEL, TRAFFIC_TEXTUAL_PANEL, WORKLOAD_BIVARIATE_PANEL, WORKLOAD_CLUSTERING_PANEL, WORKLOAD_INFOCLUSTERING_PANEL, WORKLOAD_INPUT_PANEL -
Constructor Summary
ConstructorsConstructorDescriptionKMean(int numClust, int[] varSel) KMean(ClusteringInfosKMean[] res, int[] varSel, short[][] clustAssign) -
Method Summary
Modifier and TypeMethodDescriptionvoidcalcClusteringInfo(int numCluster, KMeanClusteringEngine.TempClusterStatistics[][] sum, short[] cAss, MatrixObservations m) short[][]getAsseg()getClusteringInfos(int numCluster) intgetName()intint[]voidsetRatio(int endClust)
-
Constructor Details
-
KMean
public KMean(int numClust, int[] varSel) -
KMean
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceClustering
-
getNumCluster
public int getNumCluster()- Specified by:
getNumClusterin interfaceClustering
-
getClusteringInfos
- Specified by:
getClusteringInfosin interfaceClustering
-
calcClusteringInfo
public void calcClusteringInfo(int numCluster, KMeanClusteringEngine.TempClusterStatistics[][] sum, short[] cAss, MatrixObservations m) -
setRatio
public void setRatio(int endClust) -
getClusteringType
public int getClusteringType()- Specified by:
getClusteringTypein interfaceClustering
-
getAsseg
public short[][] getAsseg() -
getVarClust
public int[] getVarClust()- Specified by:
getVarClustin interfaceClustering
-
getResults
-