Package elki.index.preprocessed.knn
Class NaiveProjectedKNNPreprocessor.Factory<V extends NumberVector>
- java.lang.Object
-
- elki.index.preprocessed.knn.NaiveProjectedKNNPreprocessor.Factory<V>
-
- Type Parameters:
V
- Vector type
- All Implemented Interfaces:
IndexFactory<V>
- Enclosing class:
- NaiveProjectedKNNPreprocessor<O extends NumberVector>
public static class NaiveProjectedKNNPreprocessor.Factory<V extends NumberVector> extends java.lang.Object implements IndexFactory<V>
Index factory class- Author:
- Erich Schubert
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NaiveProjectedKNNPreprocessor.Factory.Par
Parameterization class.
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description Factory(double window, int projections, RandomProjectionFamily proj, RandomFactory random)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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).
-
-
-
Field Detail
-
window
double window
Curve window size
-
projections
int projections
Number of projections to use.
-
proj
RandomProjectionFamily proj
Random projection family to use.
-
random
RandomFactory random
Random number generator.
-
-
Constructor Detail
-
Factory
public Factory(double window, int projections, RandomProjectionFamily proj, RandomFactory random)
Constructor.- Parameters:
window
- Window multiplicator.projections
- Number of projections to use.proj
- Projection family to use.random
- Random number generator.
-
-
Method Detail
-
instantiate
public NaiveProjectedKNNPreprocessor<V> instantiate(Relation<V> relation)
Description copied from interface:IndexFactory
Sets the database in the distance function of this index (if existing).- Specified by:
instantiate
in interfaceIndexFactory<V extends NumberVector>
- Parameters:
relation
- the relation to index
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:IndexFactory
Get the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestriction
in interfaceIndexFactory<V extends NumberVector>
- Returns:
- Type restriction
-
-