Environment for
DeveLoping
KDD-Applications
Supported by Index-Structures

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<Pair<Integer,Integer>>
Enclosing class:
ROC

public static class ROC.SimpleAdapter
extends Object
implements Iterator<Pair<Integer,Integer>>

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!

Author:
Erich Schubert

Field Summary
private  Iterator<Integer> iter
          Original Iterator
 
Constructor Summary
ROC.SimpleAdapter(Iterator<Integer> iter)
          Constructor
 
Method Summary
 boolean hasNext()
           
 Pair<Integer,Integer> 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<Integer> iter
Original Iterator

Constructor Detail

ROC.SimpleAdapter

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

Parameters:
iter - Iterator for object IDs
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Pair<Integer,Integer>>

next

public Pair<Integer,Integer> next()
Specified by:
next in interface Iterator<Pair<Integer,Integer>>

remove

public void remove()
Specified by:
remove in interface Iterator<Pair<Integer,Integer>>

Release 0.3 (2010-03-31_1612)