Interface SharedNearestNeighborIndex<O>

  • All Superinterfaces:
    elki.index.Index
    All Known Implementing Classes:
    SharedNearestNeighborPreprocessor

    public interface SharedNearestNeighborIndex<O>
    extends elki.index.Index
    Interface for an index providing nearest neighbor sets.
    Since:
    0.4.0
    Author:
    Erich Schubert
    • Method Detail

      • getNearestNeighborSet

        elki.database.ids.ArrayDBIDs getNearestNeighborSet​(elki.database.ids.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