O
- the type of database objects the preprocessor can be applied to@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> extends AbstractMaterializeKNNPreprocessor<O>
LOF
.Modifier and Type | Class and Description |
---|---|
static class |
PartitionApproximationMaterializeKNNPreprocessor.Factory<O>
The parameterizable factory.
|
Modifier and Type | Field and Description |
---|---|
private static Logging |
LOG
Logger to use
|
private int |
partitions
Number of partitions to use.
|
private RandomFactory |
rnd
Random generator
|
distanceFunction, distanceQuery, k
relation, storage
Constructor and Description |
---|
PartitionApproximationMaterializeKNNPreprocessor(Relation<O> relation,
DistanceFunction<? super O> distanceFunction,
int k,
int partitions,
RandomFactory rnd)
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, initialize
private static final Logging LOG
private final int partitions
private final RandomFactory rnd
public PartitionApproximationMaterializeKNNPreprocessor(Relation<O> relation, DistanceFunction<? super O> distanceFunction, int k, int partitions, RandomFactory rnd)
relation
- Relation to processdistanceFunction
- the distance function to usek
- query kpartitions
- Number of partitionsrnd
- Random number generatorprotected void preprocess()
AbstractMaterializeKNNPreprocessor
preprocess
in class AbstractMaterializeKNNPreprocessor<O>
protected Logging getLogger()
AbstractPreprocessorIndex
getLogger
in class AbstractPreprocessorIndex<O,KNNList>
public java.lang.String getLongName()
Result
public java.lang.String getShortName()
Result
public void logStatistics()
Index
Copyright © 2019 ELKI Development Team. License information.