pyclustering  0.10.1
pyclustring is a Python, C++ data mining library.
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.
 
 parent
 Pointer to the parent node (None for root).
 
 type
 Type node (leaf or non-leaf).
 

Detailed Description

Representation of node of CF-Tree.

Definition at line 344 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 350 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.

Reimplemented in pyclustering.container.cftree.leaf_node, and pyclustering.container.cftree.non_leaf_node.

Definition at line 378 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 386 of file cftree.py.

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


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