de.lmu.ifi.dbs.elki.index.preprocessed.knn
Class MaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O,D>
de.lmu.ifi.dbs.elki.index.preprocessed.knn.MaterializeKNNPreprocessor.Factory<O,D>
- Type Parameters:
O
- The object typeD
- The distance type
- All Implemented Interfaces:
- IndexFactory<O,KNNIndex<O>>, InspectionUtilFrequentlyScanned, Parameterizable
- Direct Known Subclasses:
- MaterializeKNNAndRKNNPreprocessor.Factory
- Enclosing class:
- MaterializeKNNPreprocessor<O,D extends Distance<D>>
public static class MaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
- extends AbstractMaterializeKNNPreprocessor.Factory<O,D>
The parameterizable factory.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaterializeKNNPreprocessor.Factory
public MaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,D> distanceFunction)
- Index factory.
- Parameters:
k
- k parameterdistanceFunction
- distance function
instantiate
public MaterializeKNNPreprocessor<O,D> instantiate(Relation<O> relation)
- Description copied from interface:
IndexFactory
- Sets the database in the distance function of this index (if existing).
- Specified by:
instantiate
in interface IndexFactory<O,KNNIndex<O>>
- Specified by:
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
- Parameters:
relation
- the relation to index