pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
Representation of clustering feature non-leaf node. More...
Public Member Functions | |
def | successors (self) |
def | __init__ (self, feature, parent, successors) |
Create CF Non-leaf node. More... | |
def | __repr__ (self) |
def | __str__ (self) |
def | insert_successor (self, successor) |
Insert successor to the node. More... | |
def | merge (self, node) |
Merge non-leaf node to the current. More... | |
def | get_farthest_successors (self, type_measurement) |
Find pair of farthest successors of the node in line with measurement type. More... | |
def | get_nearest_successors (self, type_measurement) |
Find pair of nearest successors of the node in line with measurement type. More... | |
Public Member Functions inherited from pyclustering.container.cftree.cfnode | |
def | __init__ (self, feature, parent) |
Constructor of abstract CF node. More... | |
def | get_distance (self, node, type_measurement) |
Calculates distance between nodes in line with specified type measurement. More... | |
Public Attributes | |
type | |
Node type in CF tree that is CFNODE_NONLEAF for non leaf node. | |
Public Attributes inherited from pyclustering.container.cftree.cfnode | |
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.non_leaf_node.__init__ | ( | self, | |
feature, | |||
parent, | |||
successors | |||
) |
Create CF Non-leaf node.
[in] | feature | (cfentry): Clustering feature of the created node. |
[in] | parent | (non_leaf_node): Parent of the created node. |
[in] | successors | (list): List of successors of the node. |
def pyclustering.container.cftree.non_leaf_node.__repr__ | ( | self | ) |
Reimplemented from pyclustering.container.cftree.cfnode.
Definition at line 433 of file cftree.py.
Referenced by pyclustering.container.kdtree.node.__str__().
def pyclustering.container.cftree.non_leaf_node.__str__ | ( | self | ) |
Reimplemented from pyclustering.container.cftree.cfnode.
def pyclustering.container.cftree.non_leaf_node.get_farthest_successors | ( | self, | |
type_measurement | |||
) |
Find pair of farthest successors of the node in line with measurement type.
[in] | type_measurement | (measurement_type): Measurement type that is used for obtaining farthest successors. |
def pyclustering.container.cftree.non_leaf_node.get_nearest_successors | ( | self, | |
type_measurement | |||
) |
Find pair of nearest successors of the node in line with measurement type.
[in] | type_measurement | (measurement_type): Measurement type that is used for obtaining nearest successors. |
def pyclustering.container.cftree.non_leaf_node.insert_successor | ( | self, | |
successor | |||
) |
def pyclustering.container.cftree.non_leaf_node.merge | ( | self, | |
node | |||
) |
Merge non-leaf node to the current.
[in] | node | (non_leaf_node): Non-leaf node that should be merged with current. |
def pyclustering.container.cftree.non_leaf_node.successors | ( | self | ) |
Definition at line 407 of file cftree.py.
Referenced by pyclustering.container.cftree.non_leaf_node.__repr__(), pyclustering.container.cftree.non_leaf_node.get_farthest_successors(), pyclustering.container.cftree.non_leaf_node.get_nearest_successors(), pyclustering.container.cftree.non_leaf_node.insert_successor(), and pyclustering.container.cftree.non_leaf_node.merge().