O
- Object typepublic class InvertedDistanceSimilarityFunction<O> extends java.lang.Object implements PrimitiveSimilarityFunction<O>
Modifier and Type | Field and Description |
---|---|
static OptionID |
DISTANCE_FUNCTION_ID
Parameter to specify the similarity function to derive the distance between
database objects from.
|
protected PrimitiveDistanceFunction<? super O> |
distanceFunction
Holds the similarity function.
|
Constructor and Description |
---|
InvertedDistanceSimilarityFunction() |
Modifier and Type | Method and Description |
---|---|
SimpleTypeInformation<? super O> |
getInputTypeRestriction()
Get the input data type of the function.
|
double |
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
instantiate
isSymmetric
public static final OptionID DISTANCE_FUNCTION_ID
DistanceFunction
.protected PrimitiveDistanceFunction<? super O> distanceFunction
public SimpleTypeInformation<? super O> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface SimilarityFunction<O>
public double similarity(O o1, O o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<O>
o1
- first DatabaseObjecto2
- second DatabaseObjectCopyright © 2019 ELKI Development Team. License information.