pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
Representation of node of CF-Tree. More...
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). | |
def pyclustering.container.cftree.cfnode.__init__ | ( | self, | |
feature, | |||
parent | |||
) |
def pyclustering.container.cftree.cfnode.__repr__ | ( | self | ) |
Reimplemented in pyclustering.container.cftree.leaf_node, and pyclustering.container.cftree.non_leaf_node.
Definition at line 369 of file cftree.py.
Referenced by pyclustering.container.kdtree.node.__str__(), pyclustering.container.cftree.cfnode.__str__(), pyclustering.container.cftree.non_leaf_node.__str__(), and pyclustering.container.cftree.leaf_node.__str__().
def pyclustering.container.cftree.cfnode.__str__ | ( | self | ) |
Reimplemented in pyclustering.container.cftree.leaf_node, and pyclustering.container.cftree.non_leaf_node.
def pyclustering.container.cftree.cfnode.get_distance | ( | self, | |
node, | |||
type_measurement | |||
) |
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. |
Definition at line 386 of file cftree.py.
Referenced by pyclustering.container.cftree.leaf_node.get_nearest_index_entry().