at.tuwien.ifs.somtoolbox.clustering
Class HierarchicalCluster<E>

java.lang.Object
  extended by at.tuwien.ifs.somtoolbox.clustering.Cluster<E>
      extended by at.tuwien.ifs.somtoolbox.clustering.HierarchicalCluster<E>
All Implemented Interfaces:
Iterable<E>

public class HierarchicalCluster<E>
extends Cluster<E>


Field Summary
static String COLUMN_NAME_CONTENT
           
static String COLUMN_NAME_CONTENT_LONG
           
static String COLUMN_NAME_LEVEL
           
private  HierarchicalCluster<E> leftNode
           
private  double mergeCost
           
private  HierarchicalCluster<E> rightNode
           
(package private)  int size
           
 
Fields inherited from class at.tuwien.ifs.somtoolbox.clustering.Cluster
CONTENT_SEPARATOR_CHAR, data, label
 
Constructor Summary
HierarchicalCluster(E datum, String label)
           
HierarchicalCluster(HierarchicalCluster<E> cluster1, HierarchicalCluster<E> cluster2)
           
 
Method Summary
 prefuse.data.Node buildPrefuseTree(prefuse.data.Tree tree, prefuse.data.Node root)
           
 boolean contains(E element)
           
 int depth()
           
 HierarchicalCluster<E> getLeftNode()
           
 double getMergeCost()
           
 double getMergeCostIncrease()
           
 HierarchicalCluster<E> getRightNode()
           
 boolean isLeaf()
           
 void setMergeCost(double mergeCost)
           
private  String shortContentToString()
          Cuts off the string when the content information is too long, but adds the number of surpressed cluster names.
 String toString()
           
 
Methods inherited from class at.tuwien.ifs.somtoolbox.clustering.Cluster
contentToString, get, getData, getLabel, iterator, setLabel, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COLUMN_NAME_LEVEL

public static final String COLUMN_NAME_LEVEL
See Also:
Constant Field Values

COLUMN_NAME_CONTENT

public static final String COLUMN_NAME_CONTENT
See Also:
Constant Field Values

COLUMN_NAME_CONTENT_LONG

public static final String COLUMN_NAME_CONTENT_LONG
See Also:
Constant Field Values

mergeCost

private double mergeCost

leftNode

private HierarchicalCluster<E> leftNode

rightNode

private HierarchicalCluster<E> rightNode

size

int size
Constructor Detail

HierarchicalCluster

public HierarchicalCluster(E datum,
                           String label)

HierarchicalCluster

public HierarchicalCluster(HierarchicalCluster<E> cluster1,
                           HierarchicalCluster<E> cluster2)
Method Detail

buildPrefuseTree

public prefuse.data.Node buildPrefuseTree(prefuse.data.Tree tree,
                                          prefuse.data.Node root)

shortContentToString

private String shortContentToString()
Cuts off the string when the content information is too long, but adds the number of surpressed cluster names.


getLeftNode

public HierarchicalCluster<E> getLeftNode()

getMergeCost

public double getMergeCost()

getMergeCostIncrease

public double getMergeCostIncrease()

getRightNode

public HierarchicalCluster<E> getRightNode()

isLeaf

public boolean isLeaf()

setMergeCost

public void setMergeCost(double mergeCost)

depth

public int depth()

toString

public String toString()
Overrides:
toString in class Object

contains

public boolean contains(E element)