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

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.visualization.clustering.TreeBuilder
      extended by at.tuwien.ifs.somtoolbox.visualization.clustering.NonHierarchicalTreeBuilder
Direct Known Subclasses:
KMeansTreeBuilder

public abstract class NonHierarchicalTreeBuilder
extends TreeBuilder

This is an abstract class for non-hierarchical tree builders, which need to build a new clustering tree for each level. This class provides caching of already computed cluster levels.

Version:
$Id: NonHierarchicalTreeBuilder.java 3583 2010-05-21 10:07:41Z mayer $
Author:
Rudolf Mayer

Field Summary
protected  Hashtable<Integer,ClusteringTree> cache
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.visualization.clustering.TreeBuilder
level, monitor, progress, progressWriter
 
Constructor Summary
NonHierarchicalTreeBuilder()
           
 
Method Summary
abstract  ClusteringTree createTree(GeneralUnitPNode[][] units, int k)
           
 ClusteringTree getTree(GeneralUnitPNode[][] units, int k)
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.visualization.clustering.TreeBuilder
allowAborting, createTree, finishMonitor, getClusteringAlgName, incrementMonitor, resetMonitor, setMonitor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cache

protected Hashtable<Integer,ClusteringTree> cache
Constructor Detail

NonHierarchicalTreeBuilder

public NonHierarchicalTreeBuilder()
Method Detail

createTree

public abstract ClusteringTree createTree(GeneralUnitPNode[][] units,
                                          int k)
                                   throws ClusteringAbortedException
Throws:
ClusteringAbortedException

getTree

public ClusteringTree getTree(GeneralUnitPNode[][] units,
                              int k)
                       throws ClusteringAbortedException
Throws:
ClusteringAbortedException