Package elki.index.preprocessed.knn
Class SpacefillingMaterializeKNNPreprocessor.Factory<V extends NumberVector>
- java.lang.Object
-
- elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<V>
-
- elki.index.preprocessed.knn.SpacefillingMaterializeKNNPreprocessor.Factory<V>
-
- Type Parameters:
V
- Vector type
- All Implemented Interfaces:
IndexFactory<V>
- Enclosing class:
- SpacefillingMaterializeKNNPreprocessor<O extends NumberVector>
public static class SpacefillingMaterializeKNNPreprocessor.Factory<V extends NumberVector> extends AbstractMaterializeKNNPreprocessor.Factory<V>
Index factory class- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<? extends SpatialSorter>
curvegen
Spatial curve generators(package private) RandomFactory
random
Random number generator.(package private) int
variants
Number of variants to generate for each curve(package private) double
window
Curve window size-
Fields inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
distance, DISTANCE_FUNCTION_ID, k, K_ID
-
-
Constructor Summary
Constructors Constructor Description Factory(int k, Distance<? super V> distance, java.util.List<? extends SpatialSorter> curvegen, double window, int variants, 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.SpacefillingMaterializeKNNPreprocessor<V>
instantiate(Relation<V> relation)
Sets the database in the distance function of this index (if existing).-
Methods inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
getDistance
-
-
-
-
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
-
random
RandomFactory random
Random number generator.
-
-
Constructor Detail
-
Factory
public Factory(int k, Distance<? super V> distance, java.util.List<? extends SpatialSorter> curvegen, double window, int variants, RandomFactory random)
Constructor.- Parameters:
curvegen
- Curve generatorswindow
- Window multiplicatorvariants
- Number of curve variants to generaterandom
- Random number generator
-
-
Method Detail
-
instantiate
public SpacefillingMaterializeKNNPreprocessor<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>
- Specified by:
instantiate
in classAbstractMaterializeKNNPreprocessor.Factory<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>
- Overrides:
getInputTypeRestriction
in classAbstractMaterializeKNNPreprocessor.Factory<V extends NumberVector>
- Returns:
- Type restriction
-
-