D
- Distance typepublic static class ROC.DistanceResultAdapter<D extends Distance<D>> extends Object implements ROC.ScoreIter, DBIDRef
Modifier and Type | Field and Description |
---|---|
private DistanceDBIDListIter<D> |
iter
Original Iterator
|
private D |
prevDist
Distance of previous.
|
Constructor and Description |
---|
ROC.DistanceResultAdapter(DistanceDBIDListIter<D> iter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
boolean |
equals(Object obj)
Deprecated.
|
int |
hashCode()
Deprecated.
|
int |
internalGetIndex()
Get the internal index.
|
boolean |
tiedToPrevious()
Test whether the score is the same as the previous objects score.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
private DistanceDBIDListIter<D extends Distance<D>> iter
public ROC.DistanceResultAdapter(DistanceDBIDListIter<D> iter)
iter
- Iterator for distance resultspublic boolean valid()
Iter
public void advance()
Iter
public int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef
public boolean tiedToPrevious()
ROC.ScoreIter
tiedToPrevious
in interface ROC.ScoreIter
@Deprecated public int hashCode()
DBIDRef
DBIDUtil.deref(de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
to get an object with a stable hash code!@Deprecated public boolean equals(Object obj)
DBIDRef
DBIDUtil.equal(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
or DBIDUtil.compare(de.lmu.ifi.dbs.elki.database.ids.DBIDRef, de.lmu.ifi.dbs.elki.database.ids.DBIDRef)
!