de.lmu.ifi.dbs.elki.evaluation.roc
Class ROC.SimpleAdapter
java.lang.Object
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!
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
iter
private Iterator<DBID> iter
- Original Iterator
ROC.SimpleAdapter
public ROC.SimpleAdapter(Iterator<DBID> iter)
- Constructor
- Parameters:
iter
- Iterator for object IDs
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>