Package dev.brachtendorf.clustering
Class ClusterResult
- java.lang.Object
-
- dev.brachtendorf.clustering.ClusterResult
-
public class ClusterResult extends Object
- Author:
- Kilian
-
-
Field Summary
Fields Modifier and Type Field Description protected int[]clusterIndexKeep track to which cluster a certain points belongsprotected HashMap<Integer,List<double[]>>clustersprotected intnumberOfClustersprotected HashMap<Integer,DoubleSummaryStatistics[]>statsCompute the min max average and mean of each cluster
-
Constructor Summary
Constructors Constructor Description ClusterResult(int[] clusterIndex, double[][] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<double[]>getCluster(int cluster)int[]getClusterData()HashMap<Integer,List<double[]>>getClusters()DoubleSummaryStatistics[]getStats(int cluster)doublegetSumSquaredError()voidprintInformation()voidtoImage(File outputFile)
-
-
-
Field Detail
-
numberOfClusters
protected int numberOfClusters
-
clusterIndex
protected int[] clusterIndex
Keep track to which cluster a certain points belongs
-
stats
protected HashMap<Integer,DoubleSummaryStatistics[]> stats
Compute the min max average and mean of each cluster
-
-
Method Detail
-
printInformation
public void printInformation()
-
toImage
public void toImage(File outputFile)
-
getCluster
public List<double[]> getCluster(int cluster)
-
getStats
public DoubleSummaryStatistics[] getStats(int cluster)
-
getClusterData
public int[] getClusterData()
-
getSumSquaredError
public double getSumSquaredError()
-
-