public static class SimilarityNeighborPredicate.Instance extends java.lang.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 |
---|
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 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 © 2019 ELKI Development Team. License information.