Package elki.index.preprocessed.snn
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetNumberOfNeighbors()Get the number of neighborsSharedNearestNeighborIndex<O>instantiate(elki.database.relation.Relation<O> database)Instantiate the index for a given database.
-
-
-
Method Detail
-
instantiate
SharedNearestNeighborIndex<O> instantiate(elki.database.relation.Relation<O> database)
Instantiate the index for a given database.- Specified by:
instantiatein interfaceelki.index.IndexFactory<O>- Parameters:
database- Database type- Returns:
- Index
-
getNumberOfNeighbors
int getNumberOfNeighbors()
Get the number of neighbors- Returns:
- NN size
-
-