O
- Object typepublic interface DistanceFunction<O>
Modifier and Type | Method and Description |
---|---|
TypeInformation |
getInputTypeRestriction()
Get the input data type of the function.
|
<T extends O> |
instantiate(Relation<T> relation)
Instantiate with a database to get the actual distance query.
|
default boolean |
isMetric()
Is this distance function metric (satisfy the triangle inequality)
|
default boolean |
isSquared()
Squared distances, that would become metric after square root.
|
default boolean |
isSymmetric()
Is this function symmetric?
|
default boolean isSymmetric()
true
when symmetricdefault boolean isMetric()
true
when metric.default boolean isSquared()
true
when squared.TypeInformation getInputTypeRestriction()
<T extends O> DistanceQuery<T> instantiate(Relation<T> relation)
relation
- The representation to useCopyright © 2019 ELKI Development Team. License information.