
public class GeneralizedDBSCAN.Instance<T> extends Object
| Modifier and Type | Field and Description | 
|---|---|
| (package private) CorePredicate.Instance<T> | corepredThe core object property | 
| private static int | FIRST_CLUSTERNoise IDs | 
| private static int | NOISENoise IDs | 
| (package private) NeighborPredicate.Instance<T> | npredThe neighborhood predicate | 
| private static int | UNPROCESSEDUnprocessed IDs | 
| Constructor and Description | 
|---|
| GeneralizedDBSCAN.Instance(NeighborPredicate.Instance<T> npred,
                          CorePredicate.Instance<T> corepred)Full Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| Clustering<Model> | run()Run the actual GDBSCAN algorithm. | 
| protected int | setbasedExpandCluster(int clusterid,
                     WritableIntegerDataStore clusterids,
                     T neighbors,
                     FiniteProgress progress)Set-based expand cluster implementation. | 
private static final int UNPROCESSED
private static final int NOISE
private static final int FIRST_CLUSTER
final NeighborPredicate.Instance<T> npred
final CorePredicate.Instance<T> corepred
public GeneralizedDBSCAN.Instance(NeighborPredicate.Instance<T> npred, CorePredicate.Instance<T> corepred)
npred - Neighborhood predicatecorepred - Core object predicatepublic Clustering<Model> run()
protected int setbasedExpandCluster(int clusterid,
                        WritableIntegerDataStore clusterids,
                        T neighbors,
                        FiniteProgress progress)
clusterid - ID of the current cluster.clusterids - Current object to cluster mapping.neighbors - Neighbors acquired by initial getNeighbors call.progress - Progress logging