From e2b55c7ee580024b6454be77966752549f411ad0 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Tue, 24 Apr 2018 11:53:58 +1000 Subject: [PATCH] kmeans: use norm as default metric this avoids relying on 'point' being the coordinate type --- kmeans.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmeans.hpp b/kmeans.hpp index 01727ab5..a7d691fd 100644 --- a/kmeans.hpp +++ b/kmeans.hpp @@ -75,7 +75,7 @@ namespace util { std::forward (src), std::forward (dst), [] (auto a, auto b) { - return distance (a, b); + return norm (a - b); }); }