pyclustering
0.10.1
pyclustring is a Python, C++ data mining library.
|
Clustering feature representation. More...
Public Member Functions | |
def | number_points (self) |
Returns number of points that are encoded. More... | |
def | linear_sum (self) |
Returns linear sum. More... | |
def | square_sum (self) |
Returns square sum. More... | |
def | __init__ (self, number_points, linear_sum, square_sum) |
CF-entry constructor. More... | |
def | __copy__ (self) |
def | __repr__ (self) |
def | __str__ (self) |
Default cfentry string representation. | |
def | __add__ (self, entry) |
Overloaded operator add. More... | |
def | __eq__ (self, entry) |
Overloaded operator eq. More... | |
def | get_distance (self, entry, type_measurement) |
Calculates distance between two clusters in line with measurement type. More... | |
def | get_centroid (self) |
Calculates centroid of cluster that is represented by the entry. More... | |
def | get_radius (self) |
Calculates radius of cluster that is represented by the entry. More... | |
def | get_diameter (self) |
Calculates diameter of cluster that is represented by the entry. More... | |
def pyclustering.container.cftree.cfentry.__init__ | ( | self, | |
number_points, | |||
linear_sum, | |||
square_sum | |||
) |
CF-entry constructor.
[in] | number_points | (uint): Number of objects that is represented by the entry. |
[in] | linear_sum | (list): Linear sum of values that represent objects in each dimension. |
[in] | square_sum | (double): Square sum of values that represent objects. |
def pyclustering.container.cftree.cfentry.__add__ | ( | self, | |
entry | |||
) |
def pyclustering.container.cftree.cfentry.__copy__ | ( | self | ) |
def pyclustering.container.cftree.cfentry.__eq__ | ( | self, | |
entry | |||
) |
def pyclustering.container.cftree.cfentry.__repr__ | ( | self | ) |
Definition at line 134 of file cftree.py.
Referenced by pyclustering.container.cftree.cfentry.__str__(), 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.cfentry.get_centroid | ( | self | ) |
Calculates centroid of cluster that is represented by the entry.
It's calculated once when it's requested after the last changes.
Definition at line 224 of file cftree.py.
Referenced by pyclustering.container.cftree.cfentry.get_distance(), and pyclustering.container.cftree.cfentry.get_radius().
def pyclustering.container.cftree.cfentry.get_diameter | ( | self | ) |
Calculates diameter of cluster that is represented by the entry.
It's calculated once when it's requested after the last changes.
Definition at line 263 of file cftree.py.
Referenced by pyclustering.container.cftree.cfentry.__repr__().
def pyclustering.container.cftree.cfentry.get_distance | ( | self, | |
entry, | |||
type_measurement | |||
) |
Calculates distance between two clusters in line with measurement type.
In case of usage CENTROID_EUCLIDIAN_DISTANCE square euclidian distance will be returned. Square root should be taken from the result for obtaining real euclidian distance between entries.
[in] | entry | (cfentry): Clustering feature to which distance should be obtained. |
[in] | type_measurement | (measurement_type): Distance measurement algorithm between two clusters. |
def pyclustering.container.cftree.cfentry.get_radius | ( | self | ) |
def pyclustering.container.cftree.cfentry.linear_sum | ( | self | ) |
Returns linear sum.
Definition at line 86 of file cftree.py.
Referenced by pyclustering.container.cftree.cfentry.__add__(), pyclustering.container.cftree.cfentry.__eq__(), pyclustering.container.cftree.cfentry.__repr__(), pyclustering.container.cftree.cfentry.get_centroid(), pyclustering.container.cftree.cfentry.get_diameter(), and pyclustering.container.cftree.cfentry.get_radius().
def pyclustering.container.cftree.cfentry.number_points | ( | self | ) |
Returns number of points that are encoded.
Definition at line 76 of file cftree.py.
Referenced by pyclustering.container.cftree.cfentry.__add__(), pyclustering.container.cftree.cfentry.__repr__(), pyclustering.container.cftree.cfentry.get_centroid(), pyclustering.container.cftree.cfentry.get_diameter(), and pyclustering.container.cftree.cfentry.get_radius().
def pyclustering.container.cftree.cfentry.square_sum | ( | self | ) |
Returns square sum.
Definition at line 97 of file cftree.py.
Referenced by pyclustering.container.cftree.cfentry.__add__(), pyclustering.container.cftree.cfentry.__eq__(), pyclustering.container.cftree.cfentry.get_diameter(), and pyclustering.container.cftree.cfentry.get_radius().