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