O - Object typepublic class CachedDoubleDistanceKNNPreprocessor<O> extends AbstractMaterializeKNNPreprocessor<O>
| Modifier and Type | Class and Description |
|---|---|
static class |
CachedDoubleDistanceKNNPreprocessor.Factory<O>
The parameterizable factory.
|
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
filename
File to load.
|
private static Logging |
LOG
Class logger.
|
distanceFunction, distanceQuery, krelation, storage| Constructor and Description |
|---|
CachedDoubleDistanceKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O> distanceFunction,
int k,
java.io.File file)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Logging |
getLogger()
Get the classes static logger.
|
java.lang.String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
java.lang.String |
getShortName()
A short name for the result, useful for file names.
|
void |
logStatistics()
Send statistics to the logger, if enabled.
|
protected void |
preprocess()
Perform the preprocessing step.
|
createStorage, get, getDistanceQuery, getK, getKNNQuery, initializeprivate java.io.File filename
private static final Logging LOG
public CachedDoubleDistanceKNNPreprocessor(Relation<O> relation, DistanceFunction<? super O> distanceFunction, int k, java.io.File file)
relation - Relation to indexdistanceFunction - Distance functionk - Kfile - File to loadprotected void preprocess()
AbstractMaterializeKNNPreprocessorpreprocess in class AbstractMaterializeKNNPreprocessor<O>protected Logging getLogger()
AbstractPreprocessorIndexgetLogger in class AbstractPreprocessorIndex<O,KNNList>public java.lang.String getLongName()
Resultpublic java.lang.String getShortName()
Resultpublic void logStatistics()
IndexCopyright © 2019 ELKI Development Team. License information.