Package elki.index.preprocessed.snn
Interface SharedNearestNeighborIndex<O>
-
- All Superinterfaces:
Index
- All Known Implementing Classes:
SharedNearestNeighborPreprocessor
public interface SharedNearestNeighborIndex<O> extends Index
Interface for an index providing nearest neighbor sets.- Since:
- 0.4.0
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
SharedNearestNeighborIndex.Factory<O>
Factory interface
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArrayDBIDs
getNearestNeighborSet(DBIDRef id)
Get the precomputed nearest neighborsint
getNumberOfNeighbors()
Get the number of neighbors-
Methods inherited from interface elki.index.Index
initialize, logStatistics
-
-
-
-
Method Detail
-
getNearestNeighborSet
ArrayDBIDs getNearestNeighborSet(DBIDRef id)
Get the precomputed nearest neighbors- Parameters:
id
- Object ID- Returns:
- Neighbor DBIDs
-
getNumberOfNeighbors
int getNumberOfNeighbors()
Get the number of neighbors- Returns:
- NN size
-
-