O
- the type of DatabaseObject to compute the distances in betweenD
- the type of Distance usedpublic abstract class AbstractDatabaseDistanceFunction<O,D extends Distance<D>> extends Object implements DistanceFunction<O,D>
Modifier and Type | Class and Description |
---|---|
static class |
AbstractDatabaseDistanceFunction.Instance<O,D extends Distance<D>>
The actual instance bound to a particular database.
|
Constructor and Description |
---|
AbstractDatabaseDistanceFunction()
Constructor, supporting
Parameterizable style
classes. |
Modifier and Type | Method and Description |
---|---|
abstract D |
getDistanceFactory()
Method to get the distance functions factory.
|
boolean |
isMetric()
Is this distance function metric (in particular, does it satisfy the
triangle equation?)
|
boolean |
isSymmetric()
Is this function symmetric?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInputTypeRestriction, instantiate
public AbstractDatabaseDistanceFunction()
Parameterizable
style
classes.public abstract D getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<O,D extends Distance<D>>
public boolean isMetric()
DistanceFunction
public boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<O,D extends Distance<D>>
true
when symmetric