Representation of node of CF-Tree. More...
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... | |
def pyclustering.container.cftree.cfnode.__init__ | ( | self, | |
feature, | |||
parent, | |||
payload | |||
) |
def pyclustering.container.cftree.cfnode.__repr__ | ( | self | ) |
Definition at line 415 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 432 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 403 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(), pyclustering.container.cftree.leaf_node.merge(), pyclustering.container.cftree.leaf_node.remove_entry(), and pyclustering.container.cftree.non_leaf_node.remove_successor().
pyclustering.container.cftree.cfnode.parent |
Pointer to the parent node (None for root).
Definition at line 406 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.payload |
pyclustering.container.cftree.cfnode.type |