aquaduct.geom.cluster module¶
This module provides functions for clustering.
Clustering is done by scikit-learn module.
-
class
BarberClusterResult(labels_)[source]¶ Bases:
objectHelper class for results of barber clustering.
-
MeanShiftBandwidth(X, **kwargs)[source]¶ Helper function for automatic calculation of a bandwidth for MeanShift method.
- Parameters
X (Iterable) – Coordinates of points to be clustered.
-
class
PerformClustering(method, **kwargs)[source]¶ Bases:
objectHelper class for clustering.
-
fit(coords, spheres=None)[source]¶ - Parameters
coords (Iterable) – Input coordinates of points to be clustered.
spheres (Iterable) – Input spheres for each point. Optional, important only if
methodisBarberCluster.
- Returns
Clusters numbers.
- Return type
list of int
-