public abstract static class GeneralizedOPTICS.Instance<O,R> extends java.lang.Object implements java.util.Comparator<DBIDRef>
Modifier and Type | Field and Description |
---|---|
protected ArrayModifiableDBIDs |
candidates
Current list of candidates.
|
(package private) DBIDs |
ids
IDs to process.
|
protected WritableDBIDDataStore |
predecessor
Predecessor storage.
|
protected ModifiableDBIDs |
processedIDs
Holds a set of processed ids.
|
(package private) FiniteProgress |
progress
Progress for logging.
|
protected WritableDoubleDataStore |
reachability
Reachability storage.
|
Constructor and Description |
---|
Instance(Database db,
Relation<O> relation)
Constructor for a single data set.
|
Modifier and Type | Method and Description |
---|---|
protected abstract R |
buildResult()
Build the final result.
|
int |
compare(DBIDRef o1,
DBIDRef o2) |
protected abstract void |
expandDBID(DBIDRef id)
Add the current DBID to the cluster order, and expand its neighbors if
minPts and similar conditions are satisfied.
|
protected abstract Logging |
getLogger()
Get the class logger.
|
protected abstract void |
initialDBID(DBIDRef id)
Initialize for a new DBID.
|
R |
run()
Process the data set.
|
protected ModifiableDBIDs processedIDs
protected ArrayModifiableDBIDs candidates
protected WritableDBIDDataStore predecessor
protected WritableDoubleDataStore reachability
DBIDs ids
FiniteProgress progress
public int compare(DBIDRef o1, DBIDRef o2)
compare
in interface java.util.Comparator<DBIDRef>
public R run()
protected abstract void initialDBID(DBIDRef id)
id
- Current object IDprotected abstract void expandDBID(DBIDRef id)
id
- Current object IDprotected abstract R buildResult()
protected abstract Logging getLogger()
Copyright © 2019 ELKI Development Team. License information.