|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.distance.similarityfunction.AbstractPrimitiveSimilarityFunction<O,D>
O
- object typeD
- distance typepublic abstract class AbstractPrimitiveSimilarityFunction<O,D extends Distance<D>>
Base implementation of a similarity function.
Constructor Summary | |
---|---|
protected |
AbstractPrimitiveSimilarityFunction()
Constructor. |
Method Summary | ||
---|---|---|
abstract SimpleTypeInformation<? super O> |
getInputTypeRestriction()
Get the input data type of the function. |
|
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.similarityfunction.SimilarityFunction |
---|
getDistanceFactory |
Constructor Detail |
---|
protected AbstractPrimitiveSimilarityFunction()
Method Detail |
---|
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 DatabaseObject
public <T extends O> SimilarityQuery<T,D> instantiate(Relation<T> relation)
SimilarityFunction
instantiate
in interface SimilarityFunction<O,D extends Distance<D>>
relation
- Representation to use
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |