public abstract class AbstractVectorDoubleSimilarityFunction extends AbstractPrimitiveSimilarityFunction<NumberVector<?>,DoubleDistance> implements PrimitiveDoubleSimilarityFunction<NumberVector<?>>
Constructor and Description |
---|
AbstractVectorDoubleSimilarityFunction() |
Modifier and Type | Method and Description |
---|---|
DoubleDistance |
getDistanceFactory()
Get a distance factory.
|
SimpleTypeInformation<? super NumberVector<?>> |
getInputTypeRestriction()
Get the input data type of the function.
|
DoubleDistance |
similarity(NumberVector<?> o1,
NumberVector<?> o2)
Computes the similarity between two given DatabaseObjects according to this
similarity function.
|
instantiate, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
doubleSimilarity
instantiate, isSymmetric
public AbstractVectorDoubleSimilarityFunction()
public DoubleDistance getDistanceFactory()
SimilarityFunction
getDistanceFactory
in interface SimilarityFunction<NumberVector<?>,DoubleDistance>
public DoubleDistance similarity(NumberVector<?> o1, NumberVector<?> o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<NumberVector<?>,DoubleDistance>
similarity
in class AbstractPrimitiveSimilarityFunction<NumberVector<?>,DoubleDistance>
o1
- first DatabaseObjecto2
- second DatabaseObjectpublic SimpleTypeInformation<? super NumberVector<?>> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface PrimitiveSimilarityFunction<NumberVector<?>,DoubleDistance>
getInputTypeRestriction
in interface SimilarityFunction<NumberVector<?>,DoubleDistance>
getInputTypeRestriction
in class AbstractPrimitiveSimilarityFunction<NumberVector<?>,DoubleDistance>