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 java.io.File |
filename
Filename to load.
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
Factory(int k,
DistanceFunction<? super O> distanceFunction,
java.io.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
public Factory(int k, DistanceFunction<? super O> distanceFunction, java.io.File filename)
k
- k parameterdistanceFunction
- distance functionfilename
- Cache filepublic CachedDoubleDistanceKNNPreprocessor<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O>
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O>
relation
- the relation to indexCopyright © 2019 ELKI Development Team. License information.