de.lmu.ifi.dbs.elki.distance.similarityfunction
Interface DBIDSimilarityFunction<D extends Distance<D>>

Type Parameters:
D - distance type
All Superinterfaces:
InspectionUtilFrequentlyScanned, Parameterizable, SimilarityFunction<DBID,D>
All Known Implementing Classes:
AbstractDBIDSimilarityFunction

public interface DBIDSimilarityFunction<D extends Distance<D>>
extends SimilarityFunction<DBID,D>

Interface DBIDSimilarityFunction describes the requirements of any similarity function defined over object IDs.


Method Summary
 D similarity(DBID id1, DBID id2)
          Computes the similarity between two given DatabaseObjects according to this similarity function.
 
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.similarityfunction.SimilarityFunction
getDistanceFactory, getInputTypeRestriction, instantiate, isSymmetric
 

Method Detail

similarity

D similarity(DBID id1,
             DBID id2)
Computes the similarity between two given DatabaseObjects according to this similarity function.

Parameters:
id1 - first object id
id2 - second object id
Returns:
the similarity between two given DatabaseObjects according to this similarity function

Release 0.4.0 (2011-09-20_1324)