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

Type Parameters:
O - object type
D - distance type
All Superinterfaces:
InspectionUtilFrequentlyScanned, Parameterizable, SimilarityFunction<O,D>
All Known Subinterfaces:
NormalizedPrimitiveSimilarityFunction<O,D>
All Known Implementing Classes:
AbstractDBIDSimilarityFunction, AbstractPrimitiveSimilarityFunction, FooKernelFunction, LinearKernelFunction, PolynomialKernelFunction

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

Interface SimilarityFunction describes the requirements of any similarity function.


Method Summary
 SimpleTypeInformation<? super O> getInputTypeRestriction()
          Get the input data type of the function.
 D similarity(O o1, O o2)
          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, instantiate, isSymmetric
 

Method Detail

similarity

D similarity(O o1,
             O o2)
Computes the similarity between two given DatabaseObjects according to this similarity function.

Parameters:
o1 - first DatabaseObject
o2 - second DatabaseObject
Returns:
the similarity between two given DatabaseObjects according to this similarity function

getInputTypeRestriction

SimpleTypeInformation<? super O> getInputTypeRestriction()
Description copied from interface: SimilarityFunction
Get the input data type of the function.

Specified by:
getInputTypeRestriction in interface SimilarityFunction<O,D extends Distance<D>>

Release 0.4.0 (2011-09-20_1324)