de.lmu.ifi.dbs.elki.index.preprocessed.knn
Class PartitionApproximationMaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
java.lang.Object
de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O,D>
de.lmu.ifi.dbs.elki.index.preprocessed.knn.PartitionApproximationMaterializeKNNPreprocessor.Factory<O,D>
- Type Parameters:
O
- The object typeD
- The distance type
- All Implemented Interfaces:
- IndexFactory<O,KNNIndex<O>>, InspectionUtilFrequentlyScanned, Parameterizable
- Enclosing class:
- PartitionApproximationMaterializeKNNPreprocessor<O,D extends Distance<D>>
public static class PartitionApproximationMaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
- extends AbstractMaterializeKNNPreprocessor.Factory<O,D>
The parameterizable factory.
Field Summary |
(package private) int |
partitions
The number of partitions to use |
static OptionID |
PARTITIONS_ID
Parameter to specify the number of partitions to use for materializing
the kNN. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARTITIONS_ID
public static final OptionID PARTITIONS_ID
- Parameter to specify the number of partitions to use for materializing
the kNN. Must be an integer greater than 1.
Key: -partknn.p
partitions
int partitions
- The number of partitions to use
PartitionApproximationMaterializeKNNPreprocessor.Factory
public PartitionApproximationMaterializeKNNPreprocessor.Factory(int k,
DistanceFunction<? super O,D> distanceFunction,
int partitions)
- Constructor.
- Parameters:
k
- kdistanceFunction
- distance functionpartitions
- number of partitions
instantiate
public PartitionApproximationMaterializeKNNPreprocessor<O,D> instantiate(Relation<O> relation)
- Description copied from interface:
IndexFactory
- Sets the database in the distance function of this index (if existing).
- Specified by:
instantiate
in interface IndexFactory<O,KNNIndex<O>>
- Specified by:
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
- Parameters:
relation
- the relation to index