|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
O
- the type of DatabaseObject to compute the distances in betweenD
- the type of Distance used by this DistanceFunctionpublic interface DistanceFunction<O extends DatabaseObject,D extends Distance<D>>
Interface DistanceFunction describes the requirements of any distance function.
Method Summary | |
---|---|
D |
distance(Integer id1,
Integer id2)
Returns the distance between the two objects specified by their object ids. |
D |
distance(Integer id1,
O o2)
Returns the distance between the two specified objects. |
D |
distance(O o1,
O o2)
Computes the distance between two given DatabaseObjects according to this distance function. |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.MeasurementFunction |
---|
getDistanceFactory, infiniteDistance, nullDistance, setDatabase, undefinedDistance, valueOf |
Method Detail |
---|
D distance(O o1, O o2)
o1
- first DatabaseObjecto2
- second DatabaseObject
D distance(Integer id1, Integer id2)
id1
- first object idid2
- second object id
D distance(Integer id1, O o2)
id1
- first object ido2
- second DatabaseObject
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |