O
- The object typepublic static class CachedDoubleDistanceKNNPreprocessor.Factory<O> extends AbstractMaterializeKNNPreprocessor.Factory<O,DoubleDistance,DoubleDistanceKNNList>
Modifier and Type | Class and Description |
---|---|
static class |
CachedDoubleDistanceKNNPreprocessor.Factory.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private File |
filename
Filename to load.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
CachedDoubleDistanceKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,DoubleDistance> distanceFunction,
File filename)
Index factory.
|
Modifier and Type | Method and Description |
---|---|
CachedDoubleDistanceKNNPreprocessor<O> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFactory, getDistanceFunction, getInputTypeRestriction
private File filename
public CachedDoubleDistanceKNNPreprocessor.Factory(int k, DistanceFunction<? super O,DoubleDistance> distanceFunction, File filename)
k
- k parameterdistanceFunction
- distance functionfilename
- Cache filepublic CachedDoubleDistanceKNNPreprocessor<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O,KNNIndex<O>>
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O,DoubleDistance,DoubleDistanceKNNList>
relation
- the relation to index