at.tuwien.ifs.somtoolbox.clustering
Class HierarchicalCluster<E>
java.lang.Object
at.tuwien.ifs.somtoolbox.clustering.Cluster<E>
at.tuwien.ifs.somtoolbox.clustering.HierarchicalCluster<E>
- All Implemented Interfaces:
- Iterable<E>
public class HierarchicalCluster<E>
- extends Cluster<E>
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
HierarchicalCluster
public HierarchicalCluster(E datum,
String label)
HierarchicalCluster
public HierarchicalCluster(HierarchicalCluster<E> cluster1,
HierarchicalCluster<E> cluster2)
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)