distances.hpp

Library of commonly used distance functions.

Note

Status: BETA

Functions

template<typename C>
std::enable_if<!is_ptr_type<typename C::value_type>::value, double>::type EuclideanDistance(C &p1, C &p2)

Calculate Euclidean distance between two containers. If the containers contain a pointer type, the pointers will be de-referenced first.