de.lmu.ifi.dbs.elki.distance.similarityfunction
Interface IndexBasedSimilarityFunction<O,D extends Distance<D>>

Type Parameters:
O - Object type
D - Distance type
All Superinterfaces:
InspectionUtilFrequentlyScanned, Parameterizable, SimilarityFunction<O,D>
All Known Implementing Classes:
AbstractIndexBasedSimilarityFunction, FractionalSharedNearestNeighborSimilarityFunction, SharedNearestNeighborSimilarityFunction

public interface IndexBasedSimilarityFunction<O,D extends Distance<D>>
extends SimilarityFunction<O,D>

Interface for preprocessor/index based similarity functions.


Nested Class Summary
static interface IndexBasedSimilarityFunction.Instance<T,I extends Index,D extends Distance<D>>
          Instance interface for index/preprocessor based distance functions.
 
Method Summary
<T extends O>
IndexBasedSimilarityFunction.Instance<T,?,D>
instantiate(Relation<T> database)
          Preprocess the database to get the actual distance function.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.similarityfunction.SimilarityFunction
getDistanceFactory, getInputTypeRestriction, isSymmetric
 

Method Detail

instantiate

<T extends O> IndexBasedSimilarityFunction.Instance<T,?,D> instantiate(Relation<T> database)
Preprocess the database to get the actual distance function.

Specified by:
instantiate in interface SimilarityFunction<O,D extends Distance<D>>
Parameters:
database -
Returns:
Actual distance query.

Release 0.4.0 (2011-09-20_1324)