public class GeneralizedDBSCAN.Instance<T> extends Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
coremodel
Track which objects are "core" objects.
|
(package private) CorePredicate.Instance<T> |
corepred
The core object property
|
private static int |
NOISE
Noise IDs
|
(package private) NeighborPredicate.Instance<T> |
npred
The neighborhood predicate
|
private static int |
UNPROCESSED
Unprocessed IDs
|
Constructor and Description |
---|
GeneralizedDBSCAN.Instance(NeighborPredicate.Instance<T> npred,
CorePredicate.Instance<T> corepred,
boolean coremodel)
Full Constructor
|
Modifier and Type | Method and Description |
---|---|
protected int |
expandCluster(int clusterid,
WritableIntegerDataStore clusterids,
T neighbors,
FiniteProgress progress)
Set-based expand cluster implementation.
|
Clustering<Model> |
run()
Run the actual GDBSCAN algorithm.
|
private static final int UNPROCESSED
private static final int NOISE
final NeighborPredicate.Instance<T> npred
final CorePredicate.Instance<T> corepred
boolean coremodel
public GeneralizedDBSCAN.Instance(NeighborPredicate.Instance<T> npred, CorePredicate.Instance<T> corepred, boolean coremodel)
npred
- Neighborhood predicatecorepred
- Core object predicatecoremodel
- Keep track of core points.public Clustering<Model> run()
protected int expandCluster(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