Package elki.evaluation.scores.adapter
Class FilteredDistanceResultAdapter
- java.lang.Object
-
- elki.evaluation.scores.adapter.DistanceResultAdapter
-
- elki.evaluation.scores.adapter.FilteredDistanceResultAdapter
-
- All Implemented Interfaces:
ScoreEvaluation.Adapter
,Iter
public class FilteredDistanceResultAdapter extends DistanceResultAdapter
This adapter is used to process a list of (double, DBID) objects, but allows skipping one object in the ranking. The list must be sorted appropriately, the score is only used to detect ties.- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DBIDRef
skip
DBID to skip (usually: query object).-
Fields inherited from class elki.evaluation.scores.adapter.DistanceResultAdapter
iter, prevDist
-
-
Constructor Summary
Constructors Constructor Description FilteredDistanceResultAdapter(DBIDs set, DoubleDBIDListIter iter, int size, DBIDRef skip)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistanceResultAdapter
advance()
Moves the iterator forward to the next entry.-
Methods inherited from class elki.evaluation.scores.adapter.DistanceResultAdapter
numPositive, numTotal, test, tiedToPrevious, valid
-
-
-
-
Field Detail
-
skip
DBIDRef skip
DBID to skip (usually: query object).
-
-
Constructor Detail
-
FilteredDistanceResultAdapter
public FilteredDistanceResultAdapter(DBIDs set, DoubleDBIDListIter iter, int size, DBIDRef skip)
Constructor.- Parameters:
set
- Set of positive examplesiter
- Iterator for distance resultssize
- Number of IDsskip
- DBID to skip (reference must remain stable!)
-
-
Method Detail
-
advance
public DistanceResultAdapter advance()
Description copied from interface:Iter
Moves the iterator forward to the next entry.- Specified by:
advance
in interfaceIter
- Overrides:
advance
in classDistanceResultAdapter
- Returns:
- The iterator itself.
-
-