1 #ifndef theplu_yat_statistics_euclidean_distance_h
2 #define theplu_yat_statistics_euclidean_distance_h
26 #include "AveragerPair.h"
27 #include "AveragerPairWeighted.h"
34 namespace statistics {
57 friend class Distance<EuclideanDistance>;
59 template <
typename Iter1,
typename Iter2>
60 double distance (Iter1 beg1,Iter1 end1, Iter2 beg2,
64 add(ap,beg1,end1,beg2);
68 template <
typename Iter1,
typename Iter2>
69 double distance (Iter1 beg1,Iter1 end1, Iter2 beg2,
73 add(ap,beg1,end1,beg2);
74 return sqrt(std::distance(beg1,end1)*ap.
msd());
Class for taking care of mean and covariance of two variables in a weighted manner.
Definition: AveragerPairWeighted.h:56
Definition: iterator_traits.h:47
A convenience class to implement Distance.
Definition: Distance.h:65
double sum_squared_deviation(void) const
Class for taking care of mean and covariance of two variables.
Definition: AveragerPair.h:47
Definition: iterator_traits.h:55
void add(T &o, ForwardIterator first, ForwardIterator last, const classifier::Target &target)
Definition: utility.h:304
Calculates the Euclidean distance between elements of two ranges.
Definition: EuclideanDistance.h:54