kmeans: use norm as default metric

this avoids relying on 'point' being the coordinate type
This commit is contained in:
Danny Robson 2018-04-24 11:53:58 +10:00
parent 337e53b725
commit e2b55c7ee5

View File

@ -75,7 +75,7 @@ namespace util {
std::forward<InputT> (src),
std::forward<OutputT> (dst),
[] (auto a, auto b) {
return distance (a, b);
return norm (a - b);
});
}