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 a DBID iterator (a more efficient API).
|
int |
size()
Retrieve the collection / data size.
|
int size()
DBIDs
DoubleDBIDPair get(int off)
off
- OffsetDoubleDBIDListIter iter()
DBIDs
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.