#include <distance-computer.h>
Inheritance diagram for L1DistanceComputer:
Public Member Functions | |
virtual double | ComputeDistance (const Point &f1, const Point &f2) const |
Compute distance. | |
virtual double | ComputeDistance (const Point &f1, const Point &f2, double max_distance) const |
Quickly compute min(actual_distance(f1, f2), max_distance). |
Quickly compute min(actual_distance(f1, f2), max_distance).
This is the same as ComputeDistance, except it will stop calculating things when it knows the distance will be greater than max_distance.
Reimplemented from DistanceComputer.