Class represents clustering algorithm ROCK. More...
Public Member Functions | |
def | __init__ (self, data, eps, number_clusters, threshold=0.5, ccore=True) |
Constructor of clustering algorithm ROCK. More... | |
def | process (self) |
Performs cluster analysis in line with rules of ROCK algorithm. More... | |
def | get_clusters (self) |
Returns list of allocated clusters, each cluster contains indexes of objects in list of data. More... | |
def | get_cluster_encoding (self) |
Returns clustering result representation type that indicate how clusters are encoded. More... | |
Class represents clustering algorithm ROCK.
CCORE option can be used to use the pyclustering core - C/C++ shared library for processing that significantly increases performance.
Example:
def pyclustering.cluster.rock.rock.__init__ | ( | self, | |
data, | |||
eps, | |||
number_clusters, | |||
threshold = 0.5 , |
|||
ccore = True |
|||
) |
Constructor of clustering algorithm ROCK.
[in] | data | (list): Input data - list of points where each point is represented by list of coordinates. |
[in] | eps | (double): Connectivity radius (similarity threshold), points are neighbors if distance between them is less than connectivity radius. |
[in] | number_clusters | (uint): Defines number of clusters that should be allocated from the input data set. |
[in] | threshold | (double): Value that defines degree of normalization that influences on choice of clusters for merging during processing. |
[in] | ccore | (bool): Defines should be CCORE (C++ pyclustering library) used instead of Python code or not. |
def pyclustering.cluster.rock.rock.get_cluster_encoding | ( | self | ) |
Returns clustering result representation type that indicate how clusters are encoded.
def pyclustering.cluster.rock.rock.get_clusters | ( | self | ) |
Returns list of allocated clusters, each cluster contains indexes of objects in list of data.
Definition at line 118 of file rock.py.
Referenced by pyclustering.samples.answer_reader.get_cluster_lengths().
def pyclustering.cluster.rock.rock.process | ( | self | ) |
Performs cluster analysis in line with rules of ROCK algorithm.