#include <distance-computer.h>
Inheritance diagram for L1DistanceComputer:
Public Member Functions | |
virtual double | ComputeDistance (const Feature &f1, const Feature &f2) const |
Compute distance. | |
virtual double | ComputeDistance (const Feature &f1, const Feature &f2, double max_distance) const |
Quickly compute min(actual_distance(f1, f2), max_distance). |
double ComputeDistance | ( | const Feature & | f1, | |
const Feature & | f2, | |||
double | max_distance | |||
) | const [virtual] |
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.