D
- Distance typepublic interface DistanceDBIDResult<D extends Distance<D>> extends DBIDs
for (DistanceDBIDResultIter<D> iter = result.iter(); iter.valid(); iter.advance()) {
// You can get the distance via: iter.getDistance();
// Or use iter just like any other DBIDRef
}
If you are only interested in the IDs of the objects, the following is also
sufficient:
for (DBIDIter<D> iter = result.iter(); iter.valid(); iter.advance()) {
// Use iter just like any other DBIDRef
}
Modifier and Type | Method and Description |
---|---|
DistanceDBIDPair<D> |
get(int off)
Access a single pair.
|
DistanceDBIDResultIter<D> |
iter()
Get an iterator
|
int |
size()
Size of list.
|
DistanceDBIDPair<D> get(int off)
off
- OffsetDistanceDBIDResultIter<D> iter()