de.lmu.ifi.dbs.elki.index.preprocessed.snn
Interface SharedNearestNeighborIndex.Factory<O,I extends SharedNearestNeighborIndex<O>>

Type Parameters:
O - The input object type
I - Index type produced
All Superinterfaces:
IndexFactory<O,I>, InspectionUtilFrequentlyScanned, Parameterizable
All Known Implementing Classes:
SharedNearestNeighborPreprocessor.Factory
Enclosing interface:
SharedNearestNeighborIndex<O>

public static interface SharedNearestNeighborIndex.Factory<O,I extends SharedNearestNeighborIndex<O>>
extends IndexFactory<O,I>

Factory interface


Method Summary
 int getNumberOfNeighbors()
          Get the number of neighbors
 I instantiate(Relation<O> database)
          Instantiate the index for a given database.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.index.IndexFactory
getInputTypeRestriction
 

Method Detail

instantiate

I instantiate(Relation<O> database)
Instantiate the index for a given database.

Specified by:
instantiate in interface IndexFactory<O,I extends SharedNearestNeighborIndex<O>>
Parameters:
database - Database type
Returns:
Index

getNumberOfNeighbors

int getNumberOfNeighbors()
Get the number of neighbors

Returns:
NN size

Release 0.4.0 (2011-09-20_1324)