O
- the type of database objects the preprocessor can be applied toN
- the type of spatial nodes in the spatial indexE
- the type of spatial entries in the spatial index@Title(value="Spatial Approximation Materialize kNN Preprocessor") @Description(value="Caterializes the (approximate) k nearest neighbors of objects of a database using a spatial approximation.") public class MetricalIndexApproximationMaterializeKNNPreprocessor<O extends NumberVector,N extends Node<E>,E extends MTreeEntry> extends AbstractMaterializeKNNPreprocessor<O>
LOF
.
TODO correct handling of datastore eventsModifier and Type | Class and Description |
---|---|
static class |
MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O extends NumberVector,N extends Node<E>,E extends MTreeEntry>
The parameterizable factory.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Logger to use
|
distanceFunction, distanceQuery, k
relation, storage
Constructor and Description |
---|
MetricalIndexApproximationMaterializeKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O> distanceFunction,
int k)
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.
|
private MetricalIndexTree<O,N,E> |
getMetricalIndex(Relation<? extends O> relation)
Do some (limited) type checking, then cast the database into a spatial
database.
|
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, initialize
private static final Logging LOG
public MetricalIndexApproximationMaterializeKNNPreprocessor(Relation<O> relation, DistanceFunction<? super O> distanceFunction, int k)
relation
- Relation to preprocessdistanceFunction
- the distance function to usek
- query kprotected void preprocess()
AbstractMaterializeKNNPreprocessor
preprocess
in class AbstractMaterializeKNNPreprocessor<O extends NumberVector>
private MetricalIndexTree<O,N,E> getMetricalIndex(Relation<? extends O> relation) throws java.lang.IllegalStateException
relation
- Databasejava.lang.IllegalStateException
- when the cast fails.public java.lang.String getLongName()
Result
public java.lang.String getShortName()
Result
protected Logging getLogger()
AbstractPreprocessorIndex
getLogger
in class AbstractPreprocessorIndex<O extends NumberVector,KNNList>
public void logStatistics()
Index
Copyright © 2019 ELKI Development Team. License information.