|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDBIDDistanceFunction<D>
D
- the type of Distance usedpublic abstract class AbstractDBIDDistanceFunction<D extends Distance<D>>
AbstractDistanceFunction provides some methods valid for any extending class.
Constructor Summary | |
---|---|
protected |
AbstractDBIDDistanceFunction()
Provides an abstract DistanceFunction. |
Method Summary | ||
---|---|---|
abstract D |
distance(DBID o1,
DBID o2)
Returns the distance between the two objects specified by their object ids. |
|
abstract D |
getDistanceFactory()
Method to get the distance functions factory. |
|
SimpleTypeInformation<DBID> |
getInputTypeRestriction()
Get the input data type of the function. |
|
|
instantiate(Relation<O> database)
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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractDBIDDistanceFunction()
Method Detail |
---|
public abstract D distance(DBID o1, DBID o2)
DBIDDistanceFunction
distance
in interface DBIDDistanceFunction<D extends Distance<D>>
o1
- first object ido2
- second object id
public abstract D getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<DBID,D extends Distance<D>>
public boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<DBID,D extends Distance<D>>
true
when symmetricpublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<DBID,D extends Distance<D>>
true
when metric.public SimpleTypeInformation<DBID> getInputTypeRestriction()
DistanceFunction
getInputTypeRestriction
in interface DistanceFunction<DBID,D extends Distance<D>>
public final <O extends DBID> DistanceQuery<O,D> instantiate(Relation<O> database)
DistanceFunction
instantiate
in interface DistanceFunction<DBID,D extends Distance<D>>
database
- The representation to use
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |