Package elki.index.preprocessed.knn
Class SpatialApproximationMaterializeKNNPreprocessor<O extends elki.data.NumberVector>
- java.lang.Object
-
- elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor<O>
-
- elki.index.preprocessed.knn.SpatialApproximationMaterializeKNNPreprocessor<O>
-
- Type Parameters:
O- Data type to process
- All Implemented Interfaces:
elki.index.Index,elki.index.KNNIndex<O>
@Title("Spatial Approximation Materialize kNN Preprocessor") @Description("Caterializes the (approximate) k nearest neighbors of objects of a database using a spatial approximation.") public class SpatialApproximationMaterializeKNNPreprocessor<O extends elki.data.NumberVector> extends elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor<O>A preprocessor for annotation of the k nearest neighbors (and their distances) to each database object.Used for example by
elki.outlier.lof.LOF.TODO correct handling of datastore events
- Since:
- 0.2
- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpatialApproximationMaterializeKNNPreprocessor.FactoryThe actual preprocessor instance.
-
Field Summary
Fields Modifier and Type Field Description private static elki.logging.LoggingLOGLogger to use
-
Constructor Summary
Constructors Constructor Description SpatialApproximationMaterializeKNNPreprocessor(elki.database.relation.Relation<O> relation, elki.distance.Distance<? super O> distance, int k)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected elki.logging.LogginggetLogger()protected AbstractRStarTree<?,SpatialEntry,?>getSpatialIndex(elki.database.relation.Relation<O> relation)protected voidpreprocess()-
Methods inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor
createStorage, get, getDistanceQuery, getK, initialize, kNNByDBID, kNNByObject
-
-
-
-
Constructor Detail
-
SpatialApproximationMaterializeKNNPreprocessor
public SpatialApproximationMaterializeKNNPreprocessor(elki.database.relation.Relation<O> relation, elki.distance.Distance<? super O> distance, int k)
Constructor- Parameters:
relation- Relation to preprocessdistance- the distance function to usek- query k
-
-
Method Detail
-
preprocess
protected void preprocess()
- Specified by:
preprocessin classelki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor<O extends elki.data.NumberVector>
-
getSpatialIndex
protected AbstractRStarTree<?,SpatialEntry,?> getSpatialIndex(elki.database.relation.Relation<O> relation)
-
getLogger
protected elki.logging.Logging getLogger()
- Specified by:
getLoggerin classelki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor<O extends elki.data.NumberVector>
-
-