39 template <
class IteratorType1,
class IteratorType2,
class IteratorType3>
48 for (; first1 < last1; ++first1, ++first2, ++firstw)
50 akk += std::pow((*first1 - *first2) * (*firstw), 2);
63 template <
class IteratorType1,
class IteratorType2>
69 for (; first1 < last1; ++first1, ++first2)
71 akk += std::pow(*first1 - *first2, 2);
85 template <
class IteratorType>
102 template <
class IteratorType1,
class IteratorType2>
This file offers overloads of toIce() and fromIce() functions for STL container types.
float euclideanDistance(IteratorType1 first1, IteratorType1 last1, IteratorType2 first2)
Returns the euclidean distance.
float euclideanDistanceWeighted(IteratorType first1, IteratorType last1, IteratorType first2, IteratorType firstw)
Returns the euclidean distance with weighted with the given vector.
float euclideanDistanceWeightedSquared(IteratorType1 first1, IteratorType1 last1, IteratorType2 first2, IteratorType3 firstw)
Returns the squared euclidean distance with weighted with the given vector.
float euclideanDistanceSquared(IteratorType1 first1, IteratorType1 last1, IteratorType2 first2)
Returns the squared euclidean distance.