
public static class GeneralizedDBSCAN.Instance<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
coremodel
Track which objects are "core" objects.
|
protected CorePredicate.Instance<? super T> |
corepred
The core object property
|
protected static int |
NOISE
Noise IDs
|
protected NeighborPredicate.Instance<T> |
npred
The neighborhood predicate
|
protected static int |
UNPROCESSED
Unprocessed IDs
|
| Constructor and Description |
|---|
Instance(NeighborPredicate.Instance<T> npred,
CorePredicate.Instance<? super T> corepred,
boolean coremodel)
Full Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
expandCluster(DBIDRef seed,
int clusterid,
WritableIntegerDataStore clusterids,
T neighbors,
ArrayModifiableDBIDs activeSet,
FiniteProgress progress)
Set-based expand cluster implementation.
|
protected int |
processCorePoint(DBIDRef seed,
T newneighbors,
int clusterid,
WritableIntegerDataStore clusterids,
ArrayModifiableDBIDs activeSet)
Process a single core point.
|
Clustering<Model> |
run()
Run the actual GDBSCAN algorithm.
|
protected static final int UNPROCESSED
protected static final int NOISE
protected final NeighborPredicate.Instance<T> npred
protected final CorePredicate.Instance<? super T> corepred
protected boolean coremodel
public Instance(NeighborPredicate.Instance<T> npred, CorePredicate.Instance<? super T> corepred, boolean coremodel)
npred - Neighborhood predicatecorepred - Core object predicatecoremodel - Keep track of core points.public Clustering<Model> run()
protected int expandCluster(DBIDRef seed, int clusterid, WritableIntegerDataStore clusterids, T neighbors, ArrayModifiableDBIDs activeSet, FiniteProgress progress)
clusterid - ID of the current cluster.clusterids - Current object to cluster mapping.neighbors - Neighbors acquired by initial getNeighbors call.activeSet - Set to manage active candidates.progress - Progress loggingprotected int processCorePoint(DBIDRef seed, T newneighbors, int clusterid, WritableIntegerDataStore clusterids, ArrayModifiableDBIDs activeSet)
seed - Point to processnewneighbors - New neighborsclusterid - Cluster to add toclusterids - Cluster assignment storage.activeSet - Active set of cluster seedsCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.