public static class EpsilonNeighborPredicate.Instance extends Object implements NeighborPredicate.Instance<DoubleDBIDList>
Modifier and Type | Field and Description |
---|---|
protected double |
epsilon
Range to query with
|
protected DBIDs |
ids
DBIDs to process
|
protected RangeQuery<?> |
rq
Range query to use on the database.
|
Constructor and Description |
---|
EpsilonNeighborPredicate.Instance(double epsilon,
RangeQuery<?> rq,
DBIDs ids)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
DBIDs |
getIDs()
Get the IDs the predicate is defined for.
|
DoubleDBIDList |
getNeighbors(DBIDRef reference)
Get the neighbors of a reference object for DBSCAN.
|
DBIDIter |
iterDBIDs(DoubleDBIDList neighbors)
Add the neighbors to a DBID set
|
protected double epsilon
protected RangeQuery<?> rq
protected DBIDs ids
public EpsilonNeighborPredicate.Instance(double epsilon, RangeQuery<?> rq, DBIDs ids)
epsilon
- Epsilonrq
- Range query to useids
- DBIDs to processpublic DBIDs getIDs()
NeighborPredicate.Instance
getIDs
in interface NeighborPredicate.Instance<DoubleDBIDList>
public DoubleDBIDList getNeighbors(DBIDRef reference)
NeighborPredicate.Instance
getNeighbors
in interface NeighborPredicate.Instance<DoubleDBIDList>
reference
- Reference objectpublic DBIDIter iterDBIDs(DoubleDBIDList neighbors)
NeighborPredicate.Instance
iterDBIDs
in interface NeighborPredicate.Instance<DoubleDBIDList>
neighbors
- Neighbors to iterate overCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.