
O - the type of database objects the preprocessor can be applied toD - the type of distance the used distance function will return@Title(value="Partitioning Approximate kNN Preprocessor") @Description(value="Caterializes the (approximate) k nearest neighbors of objects of a database by partitioning and only computing kNN within each partition.") public class PartitionApproximationMaterializeKNNPreprocessor<O,D extends Distance<D>> extends AbstractMaterializeKNNPreprocessor<O,D>
LOF.| Modifier and Type | Class and Description |
|---|---|
static class |
PartitionApproximationMaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
The parameterizable factory.
|
| Modifier and Type | Field and Description |
|---|---|
private static Logging |
logger
Logger to use
|
private int |
partitions
Number of partitions to use.
|
distanceFunction, distanceQuery, k, listenerListstoragerelation| Constructor and Description |
|---|
PartitionApproximationMaterializeKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O,D> distanceFunction,
int k,
int partitions)
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.
|
protected void |
preprocess()
Perform the preprocessing step.
|
getDistanceFactory, getDistanceQuery, getK, getKNNQuerydelete, deleteAll, getPageFileStatistics, insert, insertAllprivate static final Logging logger
private final int partitions
public PartitionApproximationMaterializeKNNPreprocessor(Relation<O> relation, DistanceFunction<? super O,D> distanceFunction, int k, int partitions)
relation - Relation to processdistanceFunction - the distance function to usek - query kpartitions - Number of partitionsprotected void preprocess()
AbstractMaterializeKNNPreprocessorpreprocess in class AbstractMaterializeKNNPreprocessor<O,D extends Distance<D>>protected Logging getLogger()
AbstractPreprocessorIndexgetLogger in class AbstractPreprocessorIndex<O,List<DistanceResultPair<D extends Distance<D>>>>public String getLongName()
ResultgetLongName in interface ResultgetLongName in class AbstractIndex<O>public String getShortName()
ResultgetShortName in interface ResultgetShortName in class AbstractIndex<O>