O
- Object typepublic class CachedDoubleDistanceKNNPreprocessor<O> extends AbstractMaterializeKNNPreprocessor<O,DoubleDistance,DoubleDistanceKNNList>
Modifier and Type | Class and Description |
---|---|
static class |
CachedDoubleDistanceKNNPreprocessor.Factory<O>
The parameterizable factory.
|
Modifier and Type | Field and Description |
---|---|
private File |
filename
File to load.
|
private static Logging |
LOG
Class logger.
|
distanceFunction, distanceQuery, k
storage
relation
Constructor and Description |
---|
CachedDoubleDistanceKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O,DoubleDistance> distanceFunction,
int k,
File file)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Logging |
getLogger()
Get the classes static logger.
|
String |
getLongName()
A "pretty" name for the result, for use in titles, captions and menus.
|
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, getDistanceFactory, getDistanceQuery, getK, getKNNQuery, initialize
private File filename
private static final Logging LOG
public CachedDoubleDistanceKNNPreprocessor(Relation<O> relation, DistanceFunction<? super O,DoubleDistance> distanceFunction, int k, File file)
relation
- Relation to indexdistanceFunction
- Distance functionk
- Kfile
- File to loadprotected void preprocess()
AbstractMaterializeKNNPreprocessor
preprocess
in class AbstractMaterializeKNNPreprocessor<O,DoubleDistance,DoubleDistanceKNNList>
protected Logging getLogger()
AbstractPreprocessorIndex
getLogger
in class AbstractPreprocessorIndex<O,DoubleDistanceKNNList>
public String getLongName()
Result
getLongName
in interface Result
getLongName
in class AbstractIndex<O>
public String getShortName()
Result
getShortName
in interface Result
getShortName
in class AbstractIndex<O>
public void logStatistics()
Index