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

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

public static class ROC.SimpleAdapter
extends Object
implements Iterator<DBIDPair>

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
 
Constructor Summary
ROC.SimpleAdapter(Iterator<DBID> iter)
          Constructor
 
Method Summary
 boolean hasNext()
           
 DBIDPair 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

Constructor Detail

ROC.SimpleAdapter

public ROC.SimpleAdapter(Iterator<DBID> iter)
Constructor

Parameters:
iter - Iterator for object IDs
Method Detail

hasNext

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

next

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

remove

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

Release 0.4.0 (2011-09-20_1324)