O
- object typeD
- distance typepublic abstract class AbstractPrimitiveSimilarityFunction<O,D extends Distance<D>> extends Object implements PrimitiveSimilarityFunction<O,D>
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 D |
similarity(O o1,
O o2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDistanceFactory
protected AbstractPrimitiveSimilarityFunction()
public boolean isSymmetric()
SimilarityFunction
isSymmetric
in interface SimilarityFunction<O,D extends Distance<D>>
true
when symmetricpublic abstract SimpleTypeInformation<? super O> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface PrimitiveSimilarityFunction<O,D extends Distance<D>>
getInputTypeRestriction
in interface SimilarityFunction<O,D extends Distance<D>>
public abstract D similarity(O o1, O o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<O,D extends Distance<D>>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic <T extends O> SimilarityQuery<T,D> instantiate(Relation<T> relation)
SimilarityFunction
instantiate
in interface SimilarityFunction<O,D extends Distance<D>>
relation
- Representation to use