O
- object typeD
- distance typepublic interface PrimitiveSimilarityFunction<O,D extends Distance<?>> extends SimilarityFunction<O,D>
Modifier and Type | Method and Description |
---|---|
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.
|
getDistanceFactory, instantiate, isSymmetric
D similarity(O o1, O o2)
o1
- first DatabaseObjecto2
- second DatabaseObjectSimpleTypeInformation<? super O> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface SimilarityFunction<O,D extends Distance<?>>