Mercurial > hg > match-vamp
diff src/DistanceMetric.h @ 183:24ddab06aace re-minimise
Toward allowing types to be small again. Doesn't currently build
author | Chris Cannam |
---|---|
date | Thu, 19 Feb 2015 17:17:20 +0000 |
parents | d6c1556fadd0 |
children | 6c12db195986 |
line wrap: on
line diff
--- a/src/DistanceMetric.h Thu Feb 19 16:57:19 2015 +0000 +++ b/src/DistanceMetric.h Thu Feb 19 17:17:20 2015 +0000 @@ -17,7 +17,7 @@ #ifndef DISTANCE_METRIC_H #define DISTANCE_METRIC_H -#include <vector> +#include "Types.h" class DistanceMetric { @@ -87,8 +87,8 @@ * @param f2 one of the vectors involved in the distance calculation * @return the distance */ - double calcDistance(const std::vector<double> &f1, - const std::vector<double> &f2); + distance_t calcDistance(const feature_t &f1, + const feature_t &f2); private: Parameters m_params;