Package elki.evaluation.scores
Interface ScoreEvaluation.Adapter
-
- All Superinterfaces:
Iter
- All Known Implementing Classes:
AbstractVectorIter,DecreasingVectorIter,DistanceResultAdapter,FilteredDistanceResultAdapter,IncreasingVectorIter,OutlierScoreAdapter,SimpleAdapter
- Enclosing interface:
- ScoreEvaluation
public static interface ScoreEvaluation.Adapter extends Iter
Predicate to test whether an object is a true positive or false positive.- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intnumPositive()Return the number of positive ids.intnumTotal()Return the number of all ids.booleantest()True if the current object is a positive example.booleantiedToPrevious()Test whether the score is the same as the previous objects score.
-
-
-
Method Detail
-
test
boolean test()
True if the current object is a positive example.- Returns:
truewhen positive.
-
tiedToPrevious
boolean tiedToPrevious()
Test whether the score is the same as the previous objects score. When there is no previous result, implementations should return false!- Returns:
- Boolean
-
numPositive
int numPositive()
Return the number of positive ids.- Returns:
- Number of positive elements
-
numTotal
int numTotal()
Return the number of all ids.- Returns:
- Number of all elements
-
-