| 
				 
 | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
D - Distance typepublic interface DistanceResultPair<D extends Distance<?>>

Class that consists of a pair (distance, object ID) commonly returned for kNN and range queries.
| Method Summary | |
|---|---|
 int | 
compareByDistance(DistanceResultPair<D> o)
Compare value, but by distance only.  | 
 DBID | 
getDBID()
Getter for second element in pair  | 
 D | 
getDistance()
Getter for first  | 
 void | 
setDistance(D first)
Setter for first  | 
 void | 
setID(DBID second)
Setter for second  | 
| Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.pairs.PairInterface | 
|---|
getFirst, getSecond | 
| Methods inherited from interface java.lang.Comparable | 
|---|
compareTo | 
| Method Detail | 
|---|
D getDistance()
void setDistance(D first)
first - new value for first elementDBID getDBID()
void setID(DBID second)
second - new value for second elementint compareByDistance(DistanceResultPair<D> o)
o - Other object
  | 
				
  | 
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||