public class DistanceResultAdapter extends Object implements ScoreEvaluation.ScoreIter, DBIDRefIter
Modifier and Type | Field and Description |
---|---|
protected DoubleDBIDListIter |
iter
Original Iterator
|
protected double |
prevDist
Distance of previous.
|
Constructor and Description |
---|
DistanceResultAdapter(DoubleDBIDListIter iter)
Constructor
|
Modifier and Type | Method and Description |
---|---|
DistanceResultAdapter |
advance()
Moves the iterator forward to the next entry.
|
boolean |
equals(Object obj)
Deprecated.
|
DBIDRef |
getRef()
Get the current DBIDRef.
|
int |
hashCode()
Deprecated.
|
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.
|
protected DoubleDBIDListIter iter
protected double prevDist
public DistanceResultAdapter(DoubleDBIDListIter iter)
iter
- Iterator for distance resultspublic boolean valid()
Iter
public DistanceResultAdapter advance()
Iter
public DBIDRef getRef()
DBIDRefIter
getRef
in interface DBIDRefIter
public boolean tiedToPrevious()
ScoreEvaluation.ScoreIter
tiedToPrevious
in interface ScoreEvaluation.ScoreIter
@Deprecated public int hashCode()
@Deprecated public boolean equals(Object obj)
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.