de.lmu.ifi.dbs.elki.index.preprocessed.knn
Class MaterializeKNNAndRKNNPreprocessor.Factory<O,D extends Distance<D>>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<O,D>
      extended by de.lmu.ifi.dbs.elki.index.preprocessed.knn.MaterializeKNNPreprocessor.Factory<O,D>
          extended by de.lmu.ifi.dbs.elki.index.preprocessed.knn.MaterializeKNNAndRKNNPreprocessor.Factory<O,D>
Type Parameters:
O - The object type
D - The distance type
All Implemented Interfaces:
IndexFactory<O,KNNIndex<O>>, InspectionUtilFrequentlyScanned, Parameterizable
Enclosing class:
MaterializeKNNAndRKNNPreprocessor<O,D extends Distance<D>>

public static class MaterializeKNNAndRKNNPreprocessor.Factory<O,D extends Distance<D>>
extends MaterializeKNNPreprocessor.Factory<O,D>

The parameterizable factory.


Nested Class Summary
static class MaterializeKNNAndRKNNPreprocessor.Factory.Parameterizer<O,D extends Distance<D>>
          Parameterization class.
 
Field Summary
 
Fields inherited from class de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
DISTANCE_FUNCTION_ID, distanceFunction, k, K_ID
 
Constructor Summary
MaterializeKNNAndRKNNPreprocessor.Factory(int k, DistanceFunction<? super O,D> distanceFunction)
          Constructor.
 
Method Summary
 MaterializeKNNAndRKNNPreprocessor<O,D> instantiate(Relation<O> relation)
          Sets the database in the distance function of this index (if existing).
 
Methods inherited from class de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory
getDistanceFactory, getDistanceFunction, getInputTypeRestriction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaterializeKNNAndRKNNPreprocessor.Factory

public MaterializeKNNAndRKNNPreprocessor.Factory(int k,
                                                 DistanceFunction<? super O,D> distanceFunction)
Constructor.

Parameters:
k - k
distanceFunction - distance function
Method Detail

instantiate

public MaterializeKNNAndRKNNPreprocessor<O,D> instantiate(Relation<O> relation)
Description copied from interface: IndexFactory
Sets the database in the distance function of this index (if existing).

Specified by:
instantiate in interface IndexFactory<O,KNNIndex<O>>
Overrides:
instantiate in class MaterializeKNNPreprocessor.Factory<O,D extends Distance<D>>
Parameters:
relation - the relation to index

Release 0.4.0 (2011-09-20_1324)