de.lmu.ifi.dbs.elki.index.preprocessed.knn
Class SpatialApproximationMaterializeKNNPreprocessor.Factory<D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.index.preprocessed.knn.AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?,?>,D>
      extended by de.lmu.ifi.dbs.elki.index.preprocessed.knn.SpatialApproximationMaterializeKNNPreprocessor.Factory<D,N,E>
Type Parameters:
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<NumberVector<?,?>,KNNIndex<NumberVector<?,?>>>, InspectionUtilFrequentlyScanned, Parameterizable
Enclosing class:
SpatialApproximationMaterializeKNNPreprocessor<O extends NumberVector<?,?>,D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>

public static class SpatialApproximationMaterializeKNNPreprocessor.Factory<D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>
extends AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?,?>,D>

The actual preprocessor instance.


Nested Class Summary
static class SpatialApproximationMaterializeKNNPreprocessor.Factory.Parameterizer<D extends Distance<D>,N extends SpatialNode<N,E>,E extends SpatialEntry>
          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
SpatialApproximationMaterializeKNNPreprocessor.Factory(int k, DistanceFunction<? super NumberVector<?,?>,D> distanceFunction)
          Constructor.
 
Method Summary
 SpatialApproximationMaterializeKNNPreprocessor<NumberVector<?,?>,D,N,E> instantiate(Relation<NumberVector<?,?>> 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

SpatialApproximationMaterializeKNNPreprocessor.Factory

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

Parameters:
k - k
distanceFunction - distance function
Method Detail

instantiate

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

Specified by:
instantiate in interface IndexFactory<NumberVector<?,?>,KNNIndex<NumberVector<?,?>>>
Specified by:
instantiate in class AbstractMaterializeKNNPreprocessor.Factory<NumberVector<?,?>,D extends Distance<D>>
Parameters:
relation - the relation to index

Release 0.4.0 (2011-09-20_1324)