O
- The object typepublic static class MaterializeKNNPreprocessor.Factory<O> extends AbstractMaterializeKNNPreprocessor.Factory<O>
Modifier and Type | Class and Description |
---|---|
static class |
MaterializeKNNPreprocessor.Factory.Parameterizer<O>
Parameterization class.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
MaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super O> distanceFunction)
Index factory.
|
Modifier and Type | Method and Description |
---|---|
MaterializeKNNPreprocessor<O> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFunction, getInputTypeRestriction
public MaterializeKNNPreprocessor.Factory(int k, DistanceFunction<? super O> distanceFunction)
k
- k parameterdistanceFunction
- distance functionpublic MaterializeKNNPreprocessor<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,KNNIndex<O>>
instantiate
in class AbstractMaterializeKNNPreprocessor.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.