de.lmu.ifi.dbs.elki.evaluation.roc
Class ROC.OutlierScoreAdapter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.evaluation.roc.ROC.OutlierScoreAdapter
All Implemented Interfaces:
Iterator<DoubleObjPair<DBID>>
Enclosing class:
ROC

public static class ROC.OutlierScoreAdapter
extends Object
implements Iterator<DoubleObjPair<DBID>>

This 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!


Field Summary
private  Iterator<DBID> iter
          Original Iterator
private  Relation<Double> scores
          Outlier score
 
Constructor Summary
ROC.OutlierScoreAdapter(OutlierResult o)
          Constructor.
 
Method Summary
 boolean hasNext()
           
 DoubleObjPair<DBID> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iter

private Iterator<DBID> iter
Original Iterator


scores

private Relation<Double> scores
Outlier score

Constructor Detail

ROC.OutlierScoreAdapter

public ROC.OutlierScoreAdapter(OutlierResult o)
Constructor.

Parameters:
o - Result
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<DoubleObjPair<DBID>>

next

public DoubleObjPair<DBID> next()
Specified by:
next in interface Iterator<DoubleObjPair<DBID>>

remove

public void remove()
Specified by:
remove in interface Iterator<DoubleObjPair<DBID>>

Release 0.4.0 (2011-09-20_1324)