Deprecated
As of 3.2 (to be removed in 4.0),
use org. instead
The DBSCAN algorithm forms clusters based on the idea of density connectivity, i.e. a point p is density connected to another point q, if there exists a chain of points pi, with i = 1 .. n and p1 = p and pn = q, such that each pair <pi, pi+1> is directly density-reachable. A point q is directly density-reachable from point p if it is in the ε-neighborhood of this point.
Any point that is not density-reachable from a formed cluster is treated as noise, and will thus not be present in the result.
The algorithm requires two parameters:
Note
as DBSCAN is not a centroid-based clustering algorithm, the resulting
Cluster objects will have no defined center, i.e. Cluster#getCenter() will
return null.
| Modifier and Type | Class and Description |
|---|---|
| private static enum | DBSCANClusterer.
Status of a point during the clustering process. |
| Modifier and Type | Field and Description |
|---|---|
| private final double | eps
Maximum radius of the neighborhood to be considered. |
| private final int | minPts
Minimum number of points needed for a cluster. |
| Access | Constructor and Description |
|---|---|
| public | DBSCANClusterer(final double
maximum radius of the neighborhood to be considered eps, final int minimum number of points needed for a cluster minPts)Creates a new instance of a DBSCANClusterer. |
| Modifier and Type | Method and Description |
|---|---|
| public List | Returns: the list of clustersthe points to cluster points)Performs DBSCAN cluster analysis. |
| private Cluster | Returns: the expanded clusterCluster to expand cluster, final T Point to add to cluster point, final List<T> List of neighbors neighbors, final Collection<T> the data set points, final Map<Clusterable<T>, DBSCANClusterer.the set of already visited points visited
Deprecated
as a consequence of
Cluster being deprecated.
Expands the cluster to include density-reachable items. |
| public double | Returns: maximum radius of the neighborhoodReturns the maximum radius of the neighborhood to be considered. |
| public int | Returns: minimum number of points needed for a clusterReturns the minimum number of points needed for a cluster. |
| private List | Returns: the List of neighborsthe point to look for point, final Collection<T> possible neighbors points)Returns a list of density-reachable neighbors of a |
| private List |
| eps | back to summary |
|---|---|
| private final double eps Maximum radius of the neighborhood to be considered. | |
| minPts | back to summary |
|---|---|
| private final int minPts Minimum number of points needed for a cluster. | |
| DBSCANClusterer | back to summary |
|---|---|
| public DBSCANClusterer(final double eps, final int minPts) throws NotPositiveException Creates a new instance of a DBSCANClusterer.
| |
| cluster | back to summary |
|---|---|
| public List Performs DBSCAN cluster analysis. Note as DBSCAN is not a centroid-based clustering algorithm, the resulting
| |
| expandCluster | back to summary |
|---|---|
| private Cluster Deprecated as a consequence of Expands the cluster to include density-reachable items.
| |
| getEps | back to summary |
|---|---|
| public double getEps() Returns the maximum radius of the neighborhood to be considered.
| |
| getMinPts | back to summary |
|---|---|
| public int getMinPts() Returns the minimum number of points needed for a cluster.
| |
| getNeighbors | back to summary |
|---|---|
| private List Returns a list of density-reachable neighbors of a
| |
| merge | back to summary |
|---|---|
| private List Merges two lists together. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final DBSCANClusterer. | NOISE
The point has is considered to be noise. |
| public static final DBSCANClusterer. | PART_OF_CLUSTER
The point is already part of a cluster. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static DBSCANClusterer. | |
| public static DBSCANClusterer. |
| NOISE | back to summary |
|---|---|
| public static final DBSCANClusterer. The point has is considered to be noise. | |
| PART_OF_CLUSTER | back to summary |
|---|---|
| public static final DBSCANClusterer. The point is already part of a cluster. | |
| PointStatus | back to summary |
|---|---|
| private PointStatus() | |
| valueOf | back to summary |
|---|---|
| public static DBSCANClusterer. | |
| values | back to summary |
|---|---|
| public static DBSCANClusterer. | |