Class represents clustering algorithm DBSCAN. More...
Public Member Functions | |
def | __init__ (self, data, eps, neighbors, ccore=True, kwargs) |
Constructor of clustering algorithm DBSCAN. More... | |
def | process (self) |
Performs cluster analysis in line with rules of DBSCAN algorithm. More... | |
def | get_clusters (self) |
Returns allocated clusters. More... | |
def | get_noise (self) |
Returns allocated noise. More... | |
def | get_cluster_encoding (self) |
Returns clustering result representation type that indicate how clusters are encoded. More... | |
Class represents clustering algorithm DBSCAN.
This DBSCAN algorithm is KD-tree optimized.
CCORE option can be used to use the pyclustering core - C/C++ shared library for processing that significantly increases performance.
Example:
def pyclustering.cluster.dbscan.dbscan.__init__ | ( | self, | |
data, | |||
eps, | |||
neighbors, | |||
ccore = True , |
|||
kwargs | |||
) |
Constructor of clustering algorithm DBSCAN.
[in] | data | (list): Input data that is presented as list of points (objects), each point should be represented by list or tuple. |
[in] | eps | (double): Connectivity radius between points, points may be connected if distance between them less then the radius. |
[in] | neighbors | (uint): minimum number of shared neighbors that is required for establish links between points. |
[in] | ccore | (bool): if True than DLL CCORE (C++ solution) will be used for solving the problem. |
[in] | **kwargs | Arbitrary keyword arguments (available arguments: 'data_type'). |
Keyword Args:
def pyclustering.cluster.dbscan.dbscan.get_cluster_encoding | ( | self | ) |
Returns clustering result representation type that indicate how clusters are encoded.
def pyclustering.cluster.dbscan.dbscan.get_clusters | ( | self | ) |
Returns allocated clusters.
Definition at line 125 of file dbscan.py.
Referenced by pyclustering.samples.answer_reader.get_cluster_lengths(), and pyclustering.cluster.optics.optics.process().
def pyclustering.cluster.dbscan.dbscan.get_noise | ( | self | ) |
Returns allocated noise.
def pyclustering.cluster.dbscan.dbscan.process | ( | self | ) |
Performs cluster analysis in line with rules of DBSCAN algorithm.