|
||||||||||
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.AbstractPrimitiveDistanceFunction<O,D>
O
- the type of objects to compute the distances in betweenD
- the type of Distance usedpublic abstract class AbstractPrimitiveDistanceFunction<O,D extends Distance<D>>
AbstractDistanceFunction provides some methods valid for any extending class.
Constructor Summary | |
---|---|
AbstractPrimitiveDistanceFunction()
Provides an abstract DistanceFunction. |
Method Summary | ||
---|---|---|
abstract D |
distance(O o1,
O o2)
Computes the distance between two given DatabaseObjects according to this distance function. |
|
abstract D |
getDistanceFactory()
Method to get the distance functions factory. |
|
|
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? |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lmu.ifi.dbs.elki.distance.distancefunction.PrimitiveDistanceFunction |
---|
getInputTypeRestriction |
Constructor Detail |
---|
public AbstractPrimitiveDistanceFunction()
Method Detail |
---|
public abstract D distance(O o1, O o2)
PrimitiveDistanceFunction
distance
in interface PrimitiveDistanceFunction<O,D extends Distance<D>>
o1
- first DatabaseObjecto2
- second DatabaseObject
public abstract D getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<O,D extends Distance<D>>
public boolean isSymmetric()
DistanceFunction
isSymmetric
in interface DistanceFunction<O,D extends Distance<D>>
true
when symmetricpublic boolean isMetric()
DistanceFunction
isMetric
in interface DistanceFunction<O,D extends Distance<D>>
true
when metric.public <T extends O> DistanceQuery<T,D> instantiate(Relation<T> relation)
instantiate
in interface DistanceFunction<O,D extends Distance<D>>
relation
- Representation
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |