Interface SharedNearestNeighborIndex.Factory<O>

  • Type Parameters:
    O - The input object type
    All Superinterfaces:
    elki.index.IndexFactory<O>
    All Known Implementing Classes:
    SharedNearestNeighborPreprocessor.Factory
    Enclosing interface:
    SharedNearestNeighborIndex<O>

    public static interface SharedNearestNeighborIndex.Factory<O>
    extends elki.index.IndexFactory<O>
    Factory interface
    Author:
    Erich Schubert
    • Method Detail

      • instantiate

        SharedNearestNeighborIndex<O> instantiate​(elki.database.relation.Relation<O> database)
        Instantiate the index for a given database.
        Specified by:
        instantiate in interface elki.index.IndexFactory<O>
        Parameters:
        database - Database type
        Returns:
        Index
      • getNumberOfNeighbors

        int getNumberOfNeighbors()
        Get the number of neighbors
        Returns:
        NN size