OpenMS  2.8.0
Public Member Functions | Public Attributes | Private Member Functions | List of all members
BinaryTreeNode Class Reference

Elements of a binary tree used to represent a hierarchical clustering process. More...

#include <OpenMS/DATASTRUCTURES/BinaryTreeNode.h>

Collaboration diagram for BinaryTreeNode:
[legend]

Public Member Functions

 BinaryTreeNode (const Size i, const Size j, const float x)
 constructor More...
 
 ~BinaryTreeNode ()
 destructor More...
 
 BinaryTreeNode (const BinaryTreeNode &source)
 copy constructor More...
 
BinaryTreeNodeoperator= (const BinaryTreeNode &source)
 assignment operator More...
 

Public Attributes

Size left_child
 
Size right_child
 
float distance
 

Private Member Functions

 BinaryTreeNode ()
 

Detailed Description

Elements of a binary tree used to represent a hierarchical clustering process.

strict indexing/topology is assumed, i.e. node no. x represents clusteringstep no. x left_child and right_child are each the lowest indices to elements of the merged clusters, distance is the distance of the two children

Constructor & Destructor Documentation

◆ BinaryTreeNode() [1/3]

BinaryTreeNode ( const Size  i,
const Size  j,
const float  x 
)

constructor

◆ ~BinaryTreeNode()

destructor

◆ BinaryTreeNode() [2/3]

BinaryTreeNode ( const BinaryTreeNode source)

copy constructor

◆ BinaryTreeNode() [3/3]

BinaryTreeNode ( )
private

Member Function Documentation

◆ operator=()

BinaryTreeNode& operator= ( const BinaryTreeNode source)

assignment operator

Member Data Documentation

◆ distance

float distance

◆ left_child

Size left_child

◆ right_child

Size right_child