public abstract class AbstractDBIDRangeDistanceFunction extends AbstractDatabaseDistanceFunction<DBID> implements DBIDRangeDistanceFunction
AbstractDatabaseDistanceFunction.Instance<O>
Constructor and Description |
---|
AbstractDBIDRangeDistanceFunction() |
Modifier and Type | Method and Description |
---|---|
double |
distance(DBIDRef o1,
DBIDRef o2)
Returns the distance between the two objects specified by their object ids.
|
SimpleTypeInformation<DBID> |
getInputTypeRestriction()
Get the input data type of the function.
|
<O extends DBID> |
instantiate(Relation<O> database)
Instantiate with a database to get the actual distance query.
|
isMetric, isSymmetric
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
distance
isMetric, isSymmetric
public double distance(DBIDRef o1, DBIDRef o2)
DBIDDistanceFunction
distance
in interface DBIDDistanceFunction
o1
- first object ido2
- second object idpublic SimpleTypeInformation<DBID> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<DBID>
public <O extends DBID> DistanceQuery<O> instantiate(Relation<O> database)
DistanceFunction
instantiate
in interface DistanceFunction<DBID>
database
- The representation to useCopyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.