O
- The object typeD
- The distance typepublic static class MaterializeKNNAndRKNNPreprocessor.Factory<O,D extends Distance<D>> extends MaterializeKNNPreprocessor.Factory<O,D>
Modifier and Type | Class and Description |
---|---|
static class |
MaterializeKNNAndRKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>
Parameterization class.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
MaterializeKNNAndRKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,D> distanceFunction)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
MaterializeKNNAndRKNNPreprocessor<O,D> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFactory, getDistanceFunction, getInputTypeRestriction
public MaterializeKNNAndRKNNPreprocessor.Factory(int k, DistanceFunction<? super O,D> distanceFunction)
k
- kdistanceFunction
- distance functionpublic MaterializeKNNAndRKNNPreprocessor<O,D> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,KNNIndex<O>>
instantiate
in class MaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
relation
- the relation to index