OverlayKey standard metric. More...
#include <Comparator.h>
Public Member Functions | |
| OverlayKey | distance (const OverlayKey &x, const OverlayKey &y) const |
| calculates the distance from x to y with the standard metric | |
OverlayKey standard metric.
Definition at line 70 of file Comparator.h.
| OverlayKey KeyStdMetric::distance | ( | const OverlayKey & | x, | |
| const OverlayKey & | y | |||
| ) | const [inline] |
calculates the distance from x to y with the standard metric
| x | origination key | |
| y | destination key |
Definition at line 80 of file Comparator.h.
{
return x > y ? (x-y) : (y-x);
}
1.7.1