de.lmu.ifi.dbs.elki.index.preprocessed.knn
Class MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O extends NumberVector<? super O,?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry<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.MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O,D,N,E>
Type Parameters:
O - the type of database objects the preprocessor can be applied to
D - the type of distance the used distance function will return
N - the type of spatial nodes in the spatial index
E - the type of spatial entries in the spatial index
All Implemented Interfaces:
IndexFactory<O,KNNIndex<O>>, InspectionUtilFrequentlyScanned, Parameterizable
Enclosing class:
MetricalIndexApproximationMaterializeKNNPreprocessor<O extends NumberVector<? super O,?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry<D>>

public static class MetricalIndexApproximationMaterializeKNNPreprocessor.Factory<O extends NumberVector<? super O,?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry<D>>
extends AbstractMaterializeKNNPreprocessor.Factory<O,D>

The parameterizable factory.


Nested Class Summary
static class MetricalIndexApproximationMaterializeKNNPreprocessor.Factory.Parameterizer<O extends NumberVector<? super O,?>,D extends Distance<D>,N extends Node<E>,E extends MTreeEntry<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
MetricalIndexApproximationMaterializeKNNPreprocessor.Factory(int k, DistanceFunction<? super O,D> distanceFunction)
          Constructor.
 
Method Summary
 MetricalIndexApproximationMaterializeKNNPreprocessor<O,D,N,E> 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

MetricalIndexApproximationMaterializeKNNPreprocessor.Factory

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

Parameters:
k - k
distanceFunction - distance function
Method Detail

instantiate

public MetricalIndexApproximationMaterializeKNNPreprocessor<O,D,N,E> 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 extends NumberVector<? super O,?>,KNNIndex<O extends NumberVector<? super O,?>>>
Specified by:
instantiate in class AbstractMaterializeKNNPreprocessor.Factory<O extends NumberVector<? super O,?>,D extends Distance<D>>
Parameters:
relation - the relation to index

Release 0.4.0 (2011-09-20_1324)