de.lmu.ifi.dbs.elki.index.preprocessed.snn
Interface SharedNearestNeighborIndex<O>
- All Superinterfaces:
- Index, Result
- All Known Implementing Classes:
- SharedNearestNeighborPreprocessor
public interface SharedNearestNeighborIndex<O>
- extends Index
Interface for an index providing nearest neighbor sets.
getNearestNeighborSet
TreeSetDBIDs getNearestNeighborSet(DBID objid)
- Get the precomputed nearest neighbors
- Parameters:
objid
- Object ID
- Returns:
- Neighbor DBIDs
getNumberOfNeighbors
int getNumberOfNeighbors()
- Get the number of neighbors
- Returns:
- NN size