kmeans: use norm as default metric
this avoids relying on 'point' being the coordinate type
This commit is contained in:
parent
337e53b725
commit
e2b55c7ee5
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user