org.knime.base.node.viz.plotter.dendrogram
Interface DendrogramNode

All Known Implementing Classes:
ClusterNode

public interface DendrogramNode

This interface describes a node depicted in a dendrogram plot.

Author:
Thorsten Meinl, University of Konstanz

Method Summary
 double getDist()
          Returns the distance between the two children nodes on the next level.
 DendrogramNode getFirstSubnode()
          Returns the first sub-node of this node.
 DataRow getLeafDataPoint()
          Returns the DataRow associated with a leaf node.
 double getMaxDistance()
          Returns the maximum distance from this node to any of the leafs.
 DendrogramNode getSecondSubnode()
          Returns the second sub-node of this node.
 boolean isLeaf()
          Returns if this node is a leaf.
 

Method Detail

getFirstSubnode

DendrogramNode getFirstSubnode()
Returns the first sub-node of this node. This method is implemented because of the binary characteristic of this tree.

Returns:
the first sub node

getDist

double getDist()
Returns the distance between the two children nodes on the next level. Must return 0 for leaf nodes.

Returns:
the distance to the next level.

isLeaf

boolean isLeaf()
Returns if this node is a leaf.

Returns:
true if the node is a leaf node, false otherwise

getMaxDistance

double getMaxDistance()
Returns the maximum distance from this node to any of the leafs. Must be 0 for leaf nodes.

Returns:
the maximum distance to a leaf node

getLeafDataPoint

DataRow getLeafDataPoint()
Returns the DataRow associated with a leaf node.

Returns:
the leaf data point or null if this node is not a leaf

getSecondSubnode

DendrogramNode getSecondSubnode()
Returns the second sub-node of this node. This method is implemented because of the binary characteristic of this tree.

Returns:
the second sub node


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.