
O - Object typeD - Distance result typepublic interface DistanceFunction<O,D extends Distance<?>> extends Parameterizable
| Modifier and Type | Method and Description | 
|---|---|
| D | getDistanceFactory()Method to get the distance functions factory. | 
| 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. | 
| boolean | isMetric()Is this distance function metric (in particular, does it satisfy the
 triangle equation?) | 
| boolean | isSymmetric()Is this function symmetric? | 
D getDistanceFactory()
boolean isSymmetric()
true when symmetricboolean isMetric()
true when metric.TypeInformation getInputTypeRestriction()
<T extends O> DistanceQuery<T,D> instantiate(Relation<T> relation)
relation - The representation to use