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
    • 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