O - input object typepublic interface PrimitiveDistanceFunction<O> extends DistanceFunction<O>
| Modifier and Type | Method and Description |
|---|---|
double |
distance(O o1,
O o2)
Computes the distance between two given DatabaseObjects according to this
distance function.
|
SimpleTypeInformation<? super O> |
getInputTypeRestriction()
Get the input data type of the function.
|
default <T extends O> |
instantiate(Relation<T> relation)
Instantiate with a database to get the actual distance query.
|
isMetric, isSquared, isSymmetricdouble distance(O o1, O o2)
o1 - first DatabaseObjecto2 - second DatabaseObjectSimpleTypeInformation<? super O> getInputTypeRestriction()
DistanceFunctiongetInputTypeRestriction in interface DistanceFunction<O>default <T extends O> DistanceQuery<T> instantiate(Relation<T> relation)
DistanceFunctioninstantiate in interface DistanceFunction<O>relation - The representation to useCopyright © 2019 ELKI Development Team. License information.