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

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

Detailed Description

Representation of node of CF-Tree.

Definition at line 344 of file

Constructor & Destructor Documentation

◆ __init__()

def pyclustering.container.cftree.cfnode.__init__ (   self,

Constructor of abstract CF node.

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

Definition at line 350 of file

Member Function Documentation

◆ __repr__()

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

◆ __str__()

def pyclustering.container.cftree.cfnode.__str__ (   self)
(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

◆ get_distance()

def pyclustering.container.cftree.cfnode.get_distance (   self,

Calculates distance between nodes in line with specified type measurement.

[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.
(double) Distance between two nodes.

Definition at line 386 of file

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

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