O
- object typepublic interface PrimitiveSimilarityFunction<O> extends SimilarityFunction<O>
Modifier and Type | Method and Description |
---|---|
default <T extends O> |
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.
|
getInputTypeRestriction, isSymmetric
double similarity(O o1, O o2)
o1
- first DatabaseObjecto2
- second DatabaseObjectdefault <T extends O> SimilarityQuery<T> instantiate(Relation<T> relation)
SimilarityFunction
instantiate
in interface SimilarityFunction<O>
relation
- Representation to useCopyright © 2019 ELKI Development Team. License information.