pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
CF-Tree representation. More...
Public Member Functions | |
def | root (self) |
def | leafes (self) |
def | amount_nodes (self) |
def | amount_entries (self) |
def | height (self) |
def | branch_factor (self) |
def | threshold (self) |
def | max_entries (self) |
def | type_measurement (self) |
def | __init__ (self, branch_factor, max_entries, threshold, type_measurement=measurement_type.CENTROID_EUCLIDEAN_DISTANCE) |
Create CF-tree. More... | |
def | get_level_nodes (self, level) |
Traverses CF-tree to obtain nodes at the specified level. More... | |
def | insert_point (self, point) |
Insert point that is represented by list of coordinates. More... | |
def | insert (self, entry) |
Insert clustering feature to the tree. More... | |
def | find_nearest_leaf (self, entry, search_node=None) |
Search nearest leaf to the specified clustering feature. More... | |
CF-Tree representation.
A CF-tree is a height-balanced tree with two parameters: branching factor and threshold.
def pyclustering.container.cftree.cftree.__init__ | ( | self, | |
branch_factor, | |||
max_entries, | |||
threshold, | |||
type_measurement = measurement_type.CENTROID_EUCLIDEAN_DISTANCE |
|||
) |
Create CF-tree.
[in] | branch_factor | (uint): Maximum number of children for non-leaf nodes. |
[in] | max_entries | (uint): Maximum number of entries for leaf nodes. |
[in] | threshold | (double): Maximum diameter of feature clustering for each leaf node. |
[in] | type_measurement | (measurement_type): Measurement type that is used for calculation distance metrics. |
def pyclustering.container.cftree.cftree.amount_entries | ( | self | ) |
def pyclustering.container.cftree.cftree.amount_nodes | ( | self | ) |
def pyclustering.container.cftree.cftree.branch_factor | ( | self | ) |
def pyclustering.container.cftree.cftree.find_nearest_leaf | ( | self, | |
entry, | |||
search_node = None |
|||
) |
Search nearest leaf to the specified clustering feature.
[in] | entry | (cfentry): Clustering feature. |
[in] | search_node | (cfnode): Node from that searching should be started, if None then search process will be started for the root. |
Definition at line 880 of file cftree.py.
Referenced by pyclustering.container.cftree.cftree.find_nearest_leaf().
def pyclustering.container.cftree.cftree.get_level_nodes | ( | self, | |
level | |||
) |
def pyclustering.container.cftree.cftree.height | ( | self | ) |
def pyclustering.container.cftree.cftree.insert | ( | self, | |
entry | |||
) |
Insert clustering feature to the tree.
[in] | entry | (cfentry): Clustering feature that should be inserted. |
Definition at line 854 of file cftree.py.
Referenced by pyclustering.container.cftree.cftree.insert_point().
def pyclustering.container.cftree.cftree.insert_point | ( | self, | |
point | |||
) |
def pyclustering.container.cftree.cftree.leafes | ( | self | ) |
def pyclustering.container.cftree.cftree.max_entries | ( | self | ) |
def pyclustering.container.cftree.cftree.root | ( | self | ) |
def pyclustering.container.cftree.cftree.threshold | ( | self | ) |
def pyclustering.container.cftree.cftree.type_measurement | ( | self | ) |