de.lmu.ifi.dbs.elki.distance.similarityfunction

Interface PrimitiveSimilarityFunction<O>

• Method Summary

All Methods
Modifier and Type Method and Description
default <T extends O>SimilarityQuery<T> instantiate(Relation<T> relation)
Instantiate with a representation to get the actual similarity query.
double 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

getInputTypeRestriction, isSymmetric
• Method Detail

• similarity

double 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
• instantiate

default <T extends O> SimilarityQuery<T> instantiate(Relation<T> relation)
Description copied from interface: SimilarityFunction
Instantiate with a representation to get the actual similarity query.
Specified by:
instantiate in interface SimilarityFunction<O>
Parameters:
relation - Representation to use
Returns:
Actual distance query.