at.tuwien.ifs.somtoolbox.visualization.clustering
Class UnitKMeans

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.visualization.clustering.KMeans
      extended by at.tuwien.ifs.somtoolbox.visualization.clustering.UnitKMeans

public class UnitKMeans
extends KMeans


Nested Class Summary
 
Nested classes/interfaces inherited from class at.tuwien.ifs.somtoolbox.visualization.clustering.KMeans
KMeans.InitType
 
Field Summary
private static Hashtable<double[],GeneralUnitPNode> unitLookupTable
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.visualization.clustering.KMeans
clusters, data
 
Constructor Summary
UnitKMeans(int k, GeneralUnitPNode[][] units)
           
UnitKMeans(int k, GeneralUnitPNode[][] units, KMeans.InitType initialisation)
           
 
Method Summary
static double[][] convert(GeneralUnitPNode[][] units)
          Convert a GeneralUnitPNode[][] to a simple doule[][].
 ClusterNode[] getClusterNodes(int level)
          Returns the ClusterNodes for the given level.
 
Methods inherited from class at.tuwien.ifs.somtoolbox.visualization.clustering.KMeans
getClusterCentroids, getClusters, getClusterVariances, getData, getDifferences, getMaxValues, getMinMaxNormalisedClusterCentroids, getMinMaxNormalisedClusterCentroidsWithin, getMinValues, getOccurrenceLabels, getSSE, getSSEs, printCentroids, printCentroidsShort, printClusterIndices, setClusterCentroids, train, train
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unitLookupTable

private static Hashtable<double[],GeneralUnitPNode> unitLookupTable
Constructor Detail

UnitKMeans

public UnitKMeans(int k,
                  GeneralUnitPNode[][] units)

UnitKMeans

public UnitKMeans(int k,
                  GeneralUnitPNode[][] units,
                  KMeans.InitType initialisation)
Method Detail

convert

public static double[][] convert(GeneralUnitPNode[][] units)
Convert a GeneralUnitPNode[][] to a simple doule[][].

Parameters:
units - units to convert to.
Returns:
plain double[][] data matrix.

getClusterNodes

public ClusterNode[] getClusterNodes(int level)
Returns the ClusterNodes for the given level. Thanks a million Angela for this prime example of programming art :-)