N
- the type of spatial nodes in the spatial indexE
- the type of spatial entries in the spatial indexpublic static class SpatialApproximationMaterializeKNNPreprocessor.Factory<N extends SpatialNode<N,E>,E extends SpatialEntry> extends AbstractMaterializeKNNPreprocessor.Factory<NumberVector>
Modifier and Type | Class and Description |
---|---|
static class |
SpatialApproximationMaterializeKNNPreprocessor.Factory.Parameterizer<N extends SpatialNode<N,E>,E extends SpatialEntry>
Parameterization class.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
Factory(int k,
DistanceFunction<? super NumberVector> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
SpatialApproximationMaterializeKNNPreprocessor<NumberVector,N,E> |
instantiate(Relation<NumberVector> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFunction, getInputTypeRestriction
public Factory(int k, DistanceFunction<? super NumberVector> distanceFunction)
k
- kdistanceFunction
- distance functionpublic SpatialApproximationMaterializeKNNPreprocessor<NumberVector,N,E> instantiate(Relation<NumberVector> relation)
IndexFactory
instantiate
in interface IndexFactory<NumberVector,KNNIndex<NumberVector>>
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<NumberVector>
relation
- the relation to indexCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.