de.lmu.ifi.dbs.elki.index.preprocessed.knn
Class MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O extends NumberVector<? super O,?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O,D>
de.lmu.ifi.dbs.elki.index.preprocessed.knn.MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O,D,N,E>
- Type Parameters:
O
- the type of database objects the preprocessor can be applied toD
- the type of distance the used distance function will returnN
- the type of spatial nodes in the spatial indexE
- the type of spatial entries in the spatial index
- All Implemented Interfaces:
- IndexFactory<O,KNNIndex<O>>, InspectionUtilFrequentlyScanned, Parameterizable
- Enclosing class:
- MetricalIndexApproximationMaterializeKNNPreprocessor<O extends NumberVector<? super O,?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry<D>>
public static class MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O extends NumberVector<? super O,?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry<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 |
MetricalIndexApproximationMaterializeKNNPreprocessor.Factory
public MetricalIndexApproximationMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,D> distanceFunction)
- Constructor.
- Parameters:
k
- kdistanceFunction
- distance function
instantiate
public MetricalIndexApproximationMaterializeKNNPreprocessor<O,D,N,E> 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 extends NumberVector<? super O,?>,KNNIndex<O extends NumberVector<? super O,?>>>
- Specified by:
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O extends NumberVector<? super O,?>,D extends Distance<D>>
- Parameters:
relation
- the relation to index