de.lmu.ifi.dbs.elki.index.preprocessed.knn
Class SpatialApproximationMaterializeKNNPreprocessor.Factory<D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>
java.lang.Object
de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?,?>,D>
de.lmu.ifi.dbs.elki.index.preprocessed.knn.SpatialApproximationMaterializeKNNPreprocessor.Factory<D,N,E>
- Type Parameters:
D
- 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<NumberVector<?,?>,KNNIndex<NumberVector<?,?>>>, InspectionUtilFrequentlyScanned, Parameterizable
- Enclosing class:
- SpatialApproximationMaterializeKNNPreprocessor<O extends NumberVector<?,?>,D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>
public static class SpatialApproximationMaterializeKNNPreprocessor.Factory<D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>
- extends AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?,?>,D>
The actual preprocessor instance.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpatialApproximationMaterializeKNNPreprocessor.Factory
public SpatialApproximationMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super NumberVector<?,?>,D> distanceFunction)
- Constructor.
- Parameters:
k
- kdistanceFunction
- distance function
instantiate
public SpatialApproximationMaterializeKNNPreprocessor<NumberVector<?,?>,D,N,E> instantiate(Relation<NumberVector<?,?>> relation)
- Description copied from interface:
IndexFactory
- Sets the database in the distance function of this index (if existing).
- Specified by:
instantiate
in interface IndexFactory<NumberVector<?,?>,KNNIndex<NumberVector<?,?>>>
- Specified by:
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?,?>,D extends Distance<D>>
- Parameters:
relation
- the relation to index