Package elki.index.preprocessed.knn
Class RandomSampleKNNPreprocessor.Factory<O>
- java.lang.Object
-
- elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O>
-
- elki.index.preprocessed.knn.RandomSampleKNNPreprocessor.Factory<O>
-
- Type Parameters:
O- The object type
- All Implemented Interfaces:
elki.index.IndexFactory<O>
- Enclosing class:
- RandomSampleKNNPreprocessor<O>
public static class RandomSampleKNNPreprocessor.Factory<O> extends AbstractMaterializeKNNPreprocessor.Factory<O>
The parameterizable factory.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description private elki.utilities.random.RandomFactoryrndRandom generatorprivate doubleshareRelative share of objects to get-
Fields inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
distance, DISTANCE_FUNCTION_ID, k, K_ID
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomSampleKNNPreprocessor<O>instantiate(elki.database.relation.Relation<O> relation)-
Methods inherited from class elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
getDistance, getInputTypeRestriction
-
-
-
-
Constructor Detail
-
Factory
public Factory(int k, elki.distance.Distance<? super O> distance, double share, elki.utilities.random.RandomFactory rnd)Constructor.- Parameters:
k- Kdistance- distance functionshare- Sample size (relative)rnd- Random generator
-
-
Method Detail
-
instantiate
public RandomSampleKNNPreprocessor<O> instantiate(elki.database.relation.Relation<O> relation)
- Specified by:
instantiatein interfaceelki.index.IndexFactory<O>- Specified by:
instantiatein classAbstractMaterializeKNNPreprocessor.Factory<O>
-
-