pyclustering.container.cftree.cfnode Class Reference

Representation of node of CF-Tree. More...

+ Inheritance diagram for pyclustering.container.cftree.cfnode:

Public Member Functions

def __init__ (self, feature, parent)
 Constructor of abstract CF node. More...
 
def __repr__ (self)
 
def __str__ (self)
 
def get_distance (self, node, type_measurement)
 Calculates distance between nodes in line with specified type measurement. More...
 

Public Attributes

 feature
 Clustering feature of the node. More...
 
 parent
 Pointer to the parent node (None for root). More...
 
 type
 Type node (leaf or non-leaf). More...
 

Detailed Description

Representation of node of CF-Tree.

Definition at line 359 of file cftree.py.

Constructor & Destructor Documentation

◆ __init__()

def pyclustering.container.cftree.cfnode.__init__ (   self,
  feature,
  parent 
)

Constructor of abstract CF node.

Parameters
[in]feature(cfentry): Clustering feature of the created node.
[in]parent(cfnode): Parent of the created node.

Definition at line 365 of file cftree.py.

Member Function Documentation

◆ __repr__()

def pyclustering.container.cftree.cfnode.__repr__ (   self)

◆ __str__()

def pyclustering.container.cftree.cfnode.__str__ (   self)
Returns
(string) String representation of CF node.

Definition at line 393 of file cftree.py.

◆ get_distance()

def pyclustering.container.cftree.cfnode.get_distance (   self,
  node,
  type_measurement 
)

Calculates distance between nodes in line with specified type measurement.

Parameters
[in]node(cfnode): CF-node that is used for calculation distance to the current node.
[in]type_measurement(measurement_type): Measurement type that is used for calculation distance.
Returns
(double) Distance between two nodes.

Definition at line 401 of file cftree.py.

Referenced by pyclustering.container.cftree.leaf_node.get_nearest_index_entry().

Member Data Documentation

◆ feature

◆ parent

pyclustering.container.cftree.cfnode.parent

◆ type

pyclustering.container.cftree.cfnode.type

Type node (leaf or non-leaf).

Definition at line 381 of file cftree.py.


The documentation for this class was generated from the following file: