O
- The object typepublic static class PartitionApproximationMaterializeKNNPreprocessor.Factory<O> extends AbstractMaterializeKNNPreprocessor.Factory<O>
Modifier and Type | Class and Description |
---|---|
static class |
PartitionApproximationMaterializeKNNPreprocessor.Factory.Parameterizer<O>
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) int |
partitions
The number of partitions to use
|
private RandomFactory |
rnd
Random generator
|
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
Constructor and Description |
---|
Factory(int k,
DistanceFunction<? super O> distanceFunction,
int partitions,
RandomFactory rnd)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
PartitionApproximationMaterializeKNNPreprocessor<O> |
instantiate(Relation<O> relation)
Sets the database in the distance function of this index (if existing).
|
getDistanceFunction, getInputTypeRestriction
int partitions
private final RandomFactory rnd
public Factory(int k, DistanceFunction<? super O> distanceFunction, int partitions, RandomFactory rnd)
k
- kdistanceFunction
- distance functionpartitions
- number of partitionsrnd
- public PartitionApproximationMaterializeKNNPreprocessor<O> instantiate(Relation<O> relation)
IndexFactory
instantiate
in interface IndexFactory<O>
instantiate
in class AbstractMaterializeKNNPreprocessor.Factory<O>
relation
- the relation to indexCopyright © 2019 ELKI Development Team. License information.