O
- Object typepublic class InvertedDistanceSimilarityFunction<O> extends AbstractPrimitiveSimilarityFunction<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.
|
instantiate, isSymmetric
public static final OptionID DISTANCE_FUNCTION_ID
DistanceFunction
.
Key: -adapter.distancefunction
Default value:
EuclideanDistanceFunction
protected PrimitiveDistanceFunction<? super O> distanceFunction
public SimpleTypeInformation<? super O> getInputTypeRestriction()
SimilarityFunction
getInputTypeRestriction
in interface PrimitiveSimilarityFunction<O>
getInputTypeRestriction
in interface SimilarityFunction<O>
getInputTypeRestriction
in class AbstractPrimitiveSimilarityFunction<O>
public double similarity(O o1, O o2)
PrimitiveSimilarityFunction
similarity
in interface PrimitiveSimilarityFunction<O>
similarity
in class AbstractPrimitiveSimilarityFunction<O>
o1
- first DatabaseObjecto2
- second DatabaseObjectCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.