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.


Nested Class Summary
static interface SharedNearestNeighborIndex.Factory<O,I extends SharedNearestNeighborIndex<O>>
          Factory interface
 
Method Summary
 TreeSetDBIDs getNearestNeighborSet(DBID objid)
          Get the precomputed nearest neighbors
 int getNumberOfNeighbors()
          Get the number of neighbors
 
Methods inherited from interface de.lmu.ifi.dbs.elki.index.Index
delete, deleteAll, getPageFileStatistics, insert, insertAll
 
Methods inherited from interface de.lmu.ifi.dbs.elki.result.Result
getLongName, getShortName
 

Method Detail

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

Release 0.4.0 (2011-09-20_1324)