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. More... | |
parent | |
Pointer to the parent node (None for root). More... | |
type | |
Type node (leaf or non-leaf). More... | |
def pyclustering.container.cftree.cfnode.__init__ | ( | self, | |
feature, | |||
parent | |||
) |
def pyclustering.container.cftree.cfnode.__repr__ | ( | self | ) |
Definition at line 384 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 | ) |
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 401 of file cftree.py.
Referenced by pyclustering.container.cftree.leaf_node.get_nearest_index_entry().
pyclustering.container.cftree.cfnode.feature |
Clustering feature of the node.
Definition at line 375 of file cftree.py.
Referenced by pyclustering.container.cftree.cfnode.__repr__(), pyclustering.container.cftree.non_leaf_node.__repr__(), pyclustering.container.cftree.leaf_node.__repr__(), pyclustering.container.cftree.cfnode.get_distance(), pyclustering.container.cftree.leaf_node.insert_entry(), pyclustering.container.cftree.non_leaf_node.insert_successor(), pyclustering.container.cftree.non_leaf_node.merge(), and pyclustering.container.cftree.leaf_node.merge().
pyclustering.container.cftree.cfnode.parent |
Pointer to the parent node (None for root).
Definition at line 378 of file cftree.py.
Referenced by pyclustering.container.cftree.cfnode.__repr__(), pyclustering.container.cftree.non_leaf_node.__repr__(), and pyclustering.container.cftree.leaf_node.__repr__().
pyclustering.container.cftree.cfnode.type |