Package elki.index.preprocessed.knn
Class SpatialApproximationMaterializeKNNPreprocessor.Factory
- java.lang.Object
-
- elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<NumberVector>
-
- elki.index.preprocessed.knn.SpatialApproximationMaterializeKNNPreprocessor.Factory
-
- All Implemented Interfaces:
IndexFactory<NumberVector>
- Enclosing class:
- SpatialApproximationMaterializeKNNPreprocessor<O extends NumberVector>
public static class SpatialApproximationMaterializeKNNPreprocessor.Factory extends AbstractMaterializeKNNPreprocessor.Factory<NumberVector>
The actual preprocessor instance.- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpatialApproximationMaterializeKNNPreprocessor.Factory.Par
Parameterization class.
-
Field Summary
-
Fields inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
distance, DISTANCE_FUNCTION_ID, k, K_ID
-
-
Constructor Summary
Constructors Constructor Description Factory(int k, Distance<? super NumberVector> distance)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpatialApproximationMaterializeKNNPreprocessor<NumberVector>
instantiate(Relation<NumberVector> relation)
Sets the database in the distance function of this index (if existing).-
Methods inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
getDistance, getInputTypeRestriction
-
-
-
-
Constructor Detail
-
Factory
public Factory(int k, Distance<? super NumberVector> distance)
Constructor.- Parameters:
k
- kdistance
- distance function
-
-
Method Detail
-
instantiate
public SpatialApproximationMaterializeKNNPreprocessor<NumberVector> 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 interfaceIndexFactory<NumberVector>
- Specified by:
instantiate
in classAbstractMaterializeKNNPreprocessor.Factory<NumberVector>
- Parameters:
relation
- the relation to index
-
-