O
- The object typepublic static class CachedDoubleDistanceKNNPreprocessor.Factory<O> extends AbstractMaterializeKNNPreprocessor.Factory<O>
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> 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).
|
getDistanceFunction, getInputTypeRestriction
private File filename
public CachedDoubleDistanceKNNPreprocessor.Factory(int k, DistanceFunction<? super O> 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>
relation
- the relation to indexCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.