private class DoubleDistanceKNNList.Itr extends Object implements DoubleDistanceDBIDResultIter
Modifier and Type | Field and Description |
---|---|
private int |
pos
Cursor position.
|
Modifier | Constructor and Description |
---|---|
private |
DoubleDistanceKNNList.Itr() |
Modifier and Type | Method and Description |
---|---|
void |
advance()
Moves the iterator forward to the next entry.
|
double |
doubleDistance()
Get the distance
|
DoubleDistance |
getDistance()
Deprecated.
use
doubleDistance() ! |
DoubleDistanceDBIDPair |
getDistancePair()
Get an object pair.
|
int |
internalGetIndex()
Get the internal index.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
public int internalGetIndex()
DBIDRef
internalGetIndex
in interface DBIDRef
public boolean valid()
Iter
public void advance()
Iter
@Deprecated public DoubleDistance getDistance()
doubleDistance()
!getDistance
in interface DistanceDBIDResultIter<DoubleDistance>
getDistance
in interface DoubleDistanceDBIDResultIter
public double doubleDistance()
DoubleDistanceDBIDResultIter
doubleDistance
in interface DoubleDistanceDBIDResultIter
public DoubleDistanceDBIDPair getDistancePair()
DoubleDistanceDBIDResultIter
getDistancePair
in interface DistanceDBIDResultIter<DoubleDistance>
getDistancePair
in interface DoubleDistanceDBIDResultIter