Package elki.index.preprocessed.snn
Interface SharedNearestNeighborIndex.Factory<O>
-
- Type Parameters:
O
- The input object type
- All Superinterfaces:
IndexFactory<O>
- All Known Implementing Classes:
SharedNearestNeighborPreprocessor.Factory
- Enclosing interface:
- SharedNearestNeighborIndex<O>
public static interface SharedNearestNeighborIndex.Factory<O> extends IndexFactory<O>
Factory interface- Author:
- Erich Schubert
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNumberOfNeighbors()
Get the number of neighborsSharedNearestNeighborIndex<O>
instantiate(Relation<O> database)
Instantiate the index for a given database.-
Methods inherited from interface elki.index.IndexFactory
getInputTypeRestriction
-
-
-
-
Method Detail
-
instantiate
SharedNearestNeighborIndex<O> instantiate(Relation<O> database)
Instantiate the index for a given database.- Specified by:
instantiate
in interfaceIndexFactory<O>
- Parameters:
database
- Database type- Returns:
- Index
-
getNumberOfNeighbors
int getNumberOfNeighbors()
Get the number of neighbors- Returns:
- NN size
-
-