Class SimilarityNeighborPredicate.Instance
- java.lang.Object
-
- elki.clustering.dbscan.predicates.SimilarityNeighborPredicate.Instance
-
- All Implemented Interfaces:
NeighborPredicate.Instance<DoubleDBIDList>
- Enclosing class:
- SimilarityNeighborPredicate<O>
public static class SimilarityNeighborPredicate.Instance extends java.lang.Object implements NeighborPredicate.Instance<DoubleDBIDList>
Instance for a particular data set.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description Instance(double epsilon, RangeSearcher<DBIDRef> rq, DBIDs ids)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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
-
-
-
Field Detail
-
epsilon
protected double epsilon
Range to query with
-
rq
protected RangeSearcher<DBIDRef> rq
Range query to use on the database.
-
ids
protected DBIDs ids
DBIDs to process
-
-
Constructor Detail
-
Instance
public Instance(double epsilon, RangeSearcher<DBIDRef> rq, DBIDs ids)
Constructor.- Parameters:
epsilon
- Epsilonrq
- Range query to useids
- DBIDs to process
-
-
Method Detail
-
getIDs
public DBIDs getIDs()
Description copied from interface:NeighborPredicate.Instance
Get the IDs the predicate is defined for.- Specified by:
getIDs
in interfaceNeighborPredicate.Instance<DoubleDBIDList>
- Returns:
- Database ids
-
getNeighbors
public DoubleDBIDList getNeighbors(DBIDRef reference)
Description copied from interface:NeighborPredicate.Instance
Get the neighbors of a reference object for DBSCAN.- Specified by:
getNeighbors
in interfaceNeighborPredicate.Instance<DoubleDBIDList>
- Parameters:
reference
- Reference object- Returns:
- Neighborhood
-
iterDBIDs
public DBIDIter iterDBIDs(DoubleDBIDList neighbors)
Description copied from interface:NeighborPredicate.Instance
Add the neighbors to a DBID set- Specified by:
iterDBIDs
in interfaceNeighborPredicate.Instance<DoubleDBIDList>
- Parameters:
neighbors
- Neighbors to iterate over- Returns:
- iterator
-
-