|
||||||||||
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> de.lmu.ifi.dbs.elki.distance.distancefunction.ProxyDistanceFunction<O,D>
O
- object typeD
- distance typepublic class ProxyDistanceFunction<O,D extends Distance<D>>
Distance function to proxy computations to another distance (that probably was run before).
Field Summary | |
---|---|
(package private) DistanceQuery<O,D> |
inner
Distance query |
Constructor Summary | |
---|---|
ProxyDistanceFunction(DistanceQuery<O,D> inner)
Constructor |
Method Summary | ||
---|---|---|
D |
distance(DBID o1,
DBID o2)
Returns the distance between the two objects specified by their object ids. |
|
boolean |
equals(Object obj)
|
|
D |
getDistanceFactory()
Method to get the distance functions factory. |
|
DistanceQuery<O,D> |
getDistanceQuery()
Get the inner query |
|
int |
hashCode()
|
|
static
|
proxy(DistanceQuery<O,D> inner)
Static method version. |
|
void |
setDistanceQuery(DistanceQuery<O,D> inner)
|
|
static
|
unwrapDistance(DistanceFunction<V,D> dfun)
Helper function, to resolve any wrapped Proxy Distances |
Methods inherited from class de.lmu.ifi.dbs.elki.distance.distancefunction.AbstractDBIDDistanceFunction |
---|
getInputTypeRestriction, instantiate, isMetric, isSymmetric |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
DistanceQuery<O,D extends Distance<D>> inner
Constructor Detail |
---|
public ProxyDistanceFunction(DistanceQuery<O,D> inner)
inner
- Inner distanceMethod Detail |
---|
public static <O,D extends Distance<D>> ProxyDistanceFunction<O,D> proxy(DistanceQuery<O,D> inner)
O
- Object typeD
- Distance typeinner
- Inner distance query
public D distance(DBID o1, DBID o2)
DBIDDistanceFunction
distance
in interface DBIDDistanceFunction<D extends Distance<D>>
distance
in class AbstractDBIDDistanceFunction<D extends Distance<D>>
o1
- first object ido2
- second object id
public D getDistanceFactory()
DistanceFunction
getDistanceFactory
in interface DistanceFunction<DBID,D extends Distance<D>>
getDistanceFactory
in class AbstractDBIDDistanceFunction<D extends Distance<D>>
public DistanceQuery<O,D> getDistanceQuery()
public void setDistanceQuery(DistanceQuery<O,D> inner)
inner
- the inner distance query to setpublic static <V,T extends V,D extends Distance<D>> DistanceFunction<? super V,D> unwrapDistance(DistanceFunction<V,D> dfun)
V
- Object typeD
- Distance typedfun
- Distance function to unwrap.
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |