pyclustering  0.10.1 pyclustring is a Python, C++ data mining library.
pyclustering.cluster.optics.ordering_analyser Class Reference

Analyser of cluster ordering diagram. More...

## Public Member Functions

def cluster_ordering (self)
(list) Returns values of dataset cluster ordering.

def __init__ (self, ordering_diagram)
Analyser of ordering diagram that is based on reachability-distances. More...

def __len__ (self)
Returns length of clustering-ordering diagram.

Calculates connectivity radius of allocation specified amount of clusters using ordering diagram and marks borders of clusters using indexes of values of ordering diagram. More...

Obtains amount of clustering that can be allocated by using specified radius for ordering diagram and borders between them. More...

## Detailed Description

Analyser of cluster ordering diagram.

Using cluster-ordering it is able to connectivity radius for allocation of specified amount of clusters and calculate amount of clusters using specified connectivity radius. Cluster-ordering is formed by OPTICS algorithm during cluster analysis.

optics

Definition at line 84 of file optics.py.

## ◆ __init__()

 def pyclustering.cluster.optics.ordering_analyser.__init__ ( self, ordering_diagram )

Analyser of ordering diagram that is based on reachability-distances.

Definition at line 104 of file optics.py.

## Member Function Documentation

 def pyclustering.cluster.optics.ordering_analyser.calculate_connvectivity_radius ( self, amount_clusters, maximum_iterations = 100 )

Calculates connectivity radius of allocation specified amount of clusters using ordering diagram and marks borders of clusters using indexes of values of ordering diagram.

Parameter 'maximum_iterations' is used to protect from hanging when it is impossible to allocate specified number of clusters.

Parameters
 [in] amount_clusters (uint): amount of clusters that should be allocated by calculated connectivity radius. [in] maximum_iterations (uint): maximum number of iteration for searching connectivity radius to allocated specified amount of clusters (by default it is restricted by 100 iterations).
Returns
(double, list) Value of connectivity radius and borders of clusters like (radius, borders), radius may be 'None' as well as borders may be '[]' if connectivity radius hasn't been found for the specified amount of iterations.

Definition at line 122 of file optics.py.

## ◆ extract_cluster_amount()

 def pyclustering.cluster.optics.ordering_analyser.extract_cluster_amount ( self, radius )

Obtains amount of clustering that can be allocated by using specified radius for ordering diagram and borders between them.

When growth of reachability-distances is detected than it is considered as a start point of cluster, than pick is detected and after that recession is observed until new growth (that means end of the current cluster and start of a new one) or end of diagram.

Parameters