V
- Vector typepublic static class NaiveProjectedKNNPreprocessor.Factory<V extends NumberVector> extends java.lang.Object implements IndexFactory<V>
Modifier and Type | Class and Description |
---|---|
static class |
NaiveProjectedKNNPreprocessor.Factory.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
(package private) RandomProjectionFamily |
proj
Random projection family to use.
|
(package private) int |
projections
Number of projections to use.
|
(package private) RandomFactory |
random
Random number generator.
|
(package private) double |
window
Curve window size
|
Constructor and Description |
---|
Factory(double window,
int projections,
RandomProjectionFamily proj,
RandomFactory random)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input type restriction used for negotiating the data query.
|
NaiveProjectedKNNPreprocessor<V> |
instantiate(Relation<V> relation)
Sets the database in the distance function of this index (if existing).
|
double window
int projections
RandomProjectionFamily proj
RandomFactory random
public Factory(double window, int projections, RandomProjectionFamily proj, RandomFactory random)
window
- Window multiplicator.projections
- Number of projections to use.proj
- Projection family to use.random
- Random number generator.public NaiveProjectedKNNPreprocessor<V> instantiate(Relation<V> relation)
IndexFactory
instantiate
in interface IndexFactory<V extends NumberVector>
relation
- the relation to indexpublic TypeInformation getInputTypeRestriction()
IndexFactory
getInputTypeRestriction
in interface IndexFactory<V extends NumberVector>
Copyright © 2019 ELKI Development Team. License information.