public static class ParallelGeneralizedDBSCAN.Instance<T> extends java.lang.Object implements Processor
Modifier and Type | Class and Description |
---|---|
private class |
ParallelGeneralizedDBSCAN.Instance.Mapper
Instance to process part of the data set, for a single iteration.
|
Processor.Instance
Modifier and Type | Field and Description |
---|---|
private Border[] |
borders
Border objects (shared)
|
private WritableDataStore<Assignment> |
clusterids
Cluster assignment storage.
|
protected boolean |
coremodel
Track which objects are "core" objects.
|
protected CorePredicate.Instance<? super T> |
corepred
The core object property
|
private Core[] |
cores
Core objects (shared)
|
private Database |
database
Database for cloning neighbor predicates.
|
private int |
nextclus
Next cluster number assigned.
|
protected NeighborPredicate.Instance<T> |
npred
The neighborhood predicate
|
private NeighborPredicate<? extends T> |
npreds
Factory for neighbor predicates.
|
private FiniteProgress |
progress
Progress logger.
|
Constructor and Description |
---|
Instance(Database database,
NeighborPredicate<T> npreds,
CorePredicate<? super T> corepred,
boolean coremodel)
Full Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup(Processor.Instance inst)
Invoke cleanup.
|
ParallelGeneralizedDBSCAN.Instance.Mapper |
instantiate(Executor executor)
Create an instance.
|
protected void |
processNeighbors(DBIDRef id,
T neighbors)
Synchronize function to process the neighbors.
|
Clustering<Model> |
run()
Run the parallel GDBSCAN algorithm.
|
protected final NeighborPredicate.Instance<T> npred
protected final CorePredicate.Instance<? super T> corepred
protected boolean coremodel
private WritableDataStore<Assignment> clusterids
private Core[] cores
private Border[] borders
private int nextclus
private Database database
private NeighborPredicate<? extends T> npreds
private FiniteProgress progress
public Instance(Database database, NeighborPredicate<T> npreds, CorePredicate<? super T> corepred, boolean coremodel)
database
- Database to processnpreds
- Neighborhood predicatecorepred
- Core object predicatecoremodel
- Keep track of core points.public Clustering<Model> run()
protected void processNeighbors(DBIDRef id, T neighbors)
id
- Current pointneighbors
- Neighborspublic ParallelGeneralizedDBSCAN.Instance.Mapper instantiate(Executor executor)
Processor
instantiate
in interface Processor
executor
- Job executorpublic void cleanup(Processor.Instance inst)
Processor
Copyright © 2019 ELKI Development Team. License information.