Dendrogram Node Class
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public class DendrogramNode
- Inheritance
- Object → DendrogramNode
Remarks
Use the DendrogramNode class to access the results of a HierarchicalClusterAnalysis in a dendrogram representation. A dendrogram is a tree-like structure that shows the complete history of how the analysis was performed.
The IsLeaf property indicates whether the cluster is a leaf node (an observation from the original data set), or a merged cluster. The ObservationIndex returns the index of this observation. The LeftChild and RightChild properties specify the two clusters that were merged, while DistanceMeasure returns the distance between the two merged clusters. Level returns the number of nodes between the current node and the root node. The root node is at level 0.
A dendrogram is also useful to give a graphical representation of the results. The Position property gives the horizontal position of the node. The leaf nodes (observations) have integer positions that correspond to their dendrogram order and can be used as one coordinate. It is centered over the two clusters that were merged. The DistanceMeasure or Level properties can be used as the other coordinate.
Properties
Distance | Gets the distance measure between the two nodes of an agglomeration. |
IsLeaf | Gets whether the node represents a leaf or an agglomeration. |
Left | Gets the left child of the node. |
Level | Gets the number of nodes between this node and the root of the dendrogram. |
Observation | Gets the index of the cluster. If the cluster is an agglomeration, then -1 is returned. |
Position | Returns the horizontal position of the node. |
Right | Gets the right child of the node. |
Methods
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
Get | Serves as the default hash function. (Inherited from Object) |
Get | Gets the Type of the current instance. (Inherited from Object) |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
ToString | Returns a string that represents the current object. (Inherited from Object) |