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, payload)
 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...
 
 payload
 Payload of node where user data can be stored. More...
 

Detailed Description

Representation of node of CF-Tree.

Definition at line 391 of file cftree.py.

Constructor & Destructor Documentation

◆ __init__()

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

Constructor of abstract CF node.

Parameters
[in]feature(cfentry): Clustering feature of the created node.
[in]parent(cfnode): Parent of the created node.
[in]payload(*): Data that is stored by the node.

Definition at line 397 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 429 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 437 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

◆ payload

pyclustering.container.cftree.cfnode.payload

Payload of node where user data can be stored.

Definition at line 417 of file cftree.py.

◆ type

pyclustering.container.cftree.cfnode.type

Type node (leaf or non-leaf).

Definition at line 414 of file cftree.py.


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