O
- object typepublic abstract class AbstractPrimitiveSimilarityFunction<O> extends Object implements PrimitiveSimilarityFunction<O>
Modifier | Constructor and Description |
---|---|
protected |
AbstractPrimitiveSimilarityFunction()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract SimpleTypeInformation<? super O> |
getInputTypeRestriction()
Get the input data type of the function.
|
<T extends O> |
instantiate(Relation<T> relation)
Instantiate with a representation to get the actual similarity query.
|
boolean |
isSymmetric()
Is this function symmetric?
|
abstract double |
similarity(O o1,
O o2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
protected AbstractPrimitiveSimilarityFunction()
public boolean isSymmetric()
SimilarityFunction
isSymmetric
in interface SimilarityFunction<O>
true
when symmetricpublic abstract SimpleTypeInformation<? super O> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface PrimitiveSimilarityFunction<O>
getInputTypeRestriction
in interface SimilarityFunction<O>
public abstract double similarity(O o1, O o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<O>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic <T extends O> SimilarityQuery<T> instantiate(Relation<T> relation)
SimilarityFunction
instantiate
in interface SimilarityFunction<O>
relation
- Representation to useCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.