O
- The object typepublic static class MaterializeKNNAndRKNNPreprocessor.Factory<O> extends MaterializeKNNPreprocessor.Factory<O>
Modifier and Type | Class and Description |
---|---|
static class |
MaterializeKNNAndRKNNPreprocessor.Factory.Parameterizer<O>
Parameterization class.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
MaterializeKNNAndRKNNPreprocessor.Factory(int k,
DistanceFunction<? super O> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MaterializeKNNAndRKNNPreprocessor<O> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFunction, getInputTypeRestriction
public MaterializeKNNAndRKNNPreprocessor.Factory(int k, DistanceFunction<? super O> distanceFunction)
k
- kdistanceFunction
- distance functionpublic MaterializeKNNAndRKNNPreprocessor<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,KNNIndex<O>>
instantiate
in class MaterializeKNNPreprocessor.Factory<O>
relation
- the relation to indexCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.