distances.hpp

Library of commonly used distance functions.

This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2017-2018 Michigan State University MIT Software license; see doc/LICENSE.md

Note

Status: BETA

Defines

INCLUDE_EMP_MATH_DISTANCES_HPP_GUARD

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.