public static class EpsilonNeighborPredicate.Instance<D extends Distance<D>> extends Object implements NeighborPredicate.Instance<DistanceDBIDList<D>>
Modifier and Type | Field and Description |
---|---|
(package private) D |
epsilon
Range to query with
|
(package private) DBIDs |
ids
DBIDs to process
|
(package private) RangeQuery<?,D> |
rq
Range query to use on the database.
|
Constructor and Description |
---|
EpsilonNeighborPredicate.Instance(D epsilon,
RangeQuery<?,D> rq,
DBIDs ids)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addDBIDs(ModifiableDBIDs ids,
DistanceDBIDList<D> neighbors)
Add the neighbors to a DBID set
|
DBIDs |
getIDs()
Get the IDs the predicate is defined for.
|
DistanceDBIDList<D> |
getNeighbors(DBIDRef reference)
Get the neighbors of a reference object for DBSCAN.
|
RangeQuery<?,D extends Distance<D>> rq
DBIDs ids
public EpsilonNeighborPredicate.Instance(D epsilon, RangeQuery<?,D> rq, DBIDs ids)
epsilon
- Epsilonrq
- Range query to useids
- DBIDs to processpublic DBIDs getIDs()
NeighborPredicate.Instance
getIDs
in interface NeighborPredicate.Instance<DistanceDBIDList<D extends Distance<D>>>
public DistanceDBIDList<D> getNeighbors(DBIDRef reference)
NeighborPredicate.Instance
getNeighbors
in interface NeighborPredicate.Instance<DistanceDBIDList<D extends Distance<D>>>
reference
- Reference objectpublic void addDBIDs(ModifiableDBIDs ids, DistanceDBIDList<D> neighbors)
NeighborPredicate.Instance
addDBIDs
in interface NeighborPredicate.Instance<DistanceDBIDList<D extends Distance<D>>>
ids
- ID setneighbors
- Neighbors to add