Package elki.index.preprocessed.knn
Class SpacefillingKNNPreprocessor.Factory<V extends NumberVector>
- java.lang.Object
-
- elki.index.preprocessed.knn.SpacefillingKNNPreprocessor.Factory<V>
-
- Type Parameters:
V- Vector type
- All Implemented Interfaces:
IndexFactory<V>
- Enclosing class:
- SpacefillingKNNPreprocessor<O extends NumberVector>
public static class SpacefillingKNNPreprocessor.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 classSpacefillingKNNPreprocessor.Factory.ParParameterization class.
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<? extends SpatialSorter>curvegenSpatial curve generators(package private) intodimNumber of dimensions to use.(package private) RandomProjectionFamilyprojRandom projection family to use.(package private) RandomFactoryrandomRandom number generator.(package private) intvariantsNumber of variants to generate for each curve(package private) doublewindowCurve window size
-
Constructor Summary
Constructors Constructor Description Factory(java.util.List<? extends SpatialSorter> curvegen, double window, int variants, int odim, RandomProjectionFamily proj, RandomFactory random)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeInformationgetInputTypeRestriction()Get the input type restriction used for negotiating the data query.SpacefillingKNNPreprocessor<V>instantiate(Relation<V> relation)Sets the database in the distance function of this index (if existing).
-
-
-
Field Detail
-
curvegen
java.util.List<? extends SpatialSorter> curvegen
Spatial curve generators
-
window
double window
Curve window size
-
variants
int variants
Number of variants to generate for each curve
-
odim
int odim
Number of dimensions to use.
-
proj
RandomProjectionFamily proj
Random projection family to use.
-
random
RandomFactory random
Random number generator.
-
-
Constructor Detail
-
Factory
public Factory(java.util.List<? extends SpatialSorter> curvegen, double window, int variants, int odim, RandomProjectionFamily proj, RandomFactory random)
Constructor.- Parameters:
curvegen- Curve generatorswindow- Window multiplicatorvariants- Number of curve variants to generateodim- Number of dimensions to use -1 == all.proj- Random projection familyrandom- Random number generator
-
-
Method Detail
-
instantiate
public SpacefillingKNNPreprocessor<V> instantiate(Relation<V> relation)
Description copied from interface:IndexFactorySets the database in the distance function of this index (if existing).- Specified by:
instantiatein interfaceIndexFactory<V extends NumberVector>- Parameters:
relation- the relation to index
-
getInputTypeRestriction
public TypeInformation getInputTypeRestriction()
Description copied from interface:IndexFactoryGet the input type restriction used for negotiating the data query.- Specified by:
getInputTypeRestrictionin interfaceIndexFactory<V extends NumberVector>- Returns:
- Type restriction
-
-