Package elki.evaluation.scores.adapter
Class OutlierScoreAdapter
- java.lang.Object
-
- elki.evaluation.scores.adapter.OutlierScoreAdapter
-
- All Implemented Interfaces:
elki.evaluation.scores.ScoreEvaluation.Adapter,elki.utilities.datastructures.iterator.Iter
public class OutlierScoreAdapter extends java.lang.Object implements elki.evaluation.scores.ScoreEvaluation.AdapterThis adapter can be used for an arbitrary collection of Integers, and uses that id1.compareTo(id2) != 0 for id1 != id2 to satisfy the comparability.Note that of course, no id should occur more than once.
The ROC values would be incorrect then anyway!
- Since:
- 0.7.0
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description OutlierScoreAdapter(elki.database.ids.DBIDs positive, OutlierResult o)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutlierScoreAdapteradvance()intnumPositive()intnumTotal()booleantest()booleantiedToPrevious()booleanvalid()
-
-
-
Constructor Detail
-
OutlierScoreAdapter
public OutlierScoreAdapter(elki.database.ids.DBIDs positive, OutlierResult o)Constructor.- Parameters:
positive- Positive objectso- Result
-
-
Method Detail
-
valid
public boolean valid()
- Specified by:
validin interfaceelki.utilities.datastructures.iterator.Iter
-
advance
public OutlierScoreAdapter advance()
- Specified by:
advancein interfaceelki.utilities.datastructures.iterator.Iter
-
tiedToPrevious
public boolean tiedToPrevious()
- Specified by:
tiedToPreviousin interfaceelki.evaluation.scores.ScoreEvaluation.Adapter
-
test
public boolean test()
- Specified by:
testin interfaceelki.evaluation.scores.ScoreEvaluation.Adapter
-
numPositive
public int numPositive()
- Specified by:
numPositivein interfaceelki.evaluation.scores.ScoreEvaluation.Adapter
-
numTotal
public int numTotal()
- Specified by:
numTotalin interfaceelki.evaluation.scores.ScoreEvaluation.Adapter
-
-