public interface DoubleDBIDList extends DBIDs
for (DoubleDBIDListIter iter = result.iter(); iter.valid(); iter.advance()) {
// You can get the distance via: iter.doubleValue();
// And 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 iter = result.iter(); iter.valid(); iter.advance()) {
// Use iter just like any other DBIDRef
}
Modifier and Type | Method and Description |
---|---|
DoubleDBIDPair |
get(int off)
Materialize a single pair.
|
DoubleDBIDListIter |
iter()
Get an iterator
|
int |
size()
Size of list.
|
DoubleDBIDPair get(int off)
off
- OffsetDoubleDBIDListIter iter()
Copyright © 2014 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.