
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, getInputTypeRestrictionprivate 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)
IndexFactoryinstantiate 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.