1 #ifndef theplu_yat_statistics_pearson_distance_h
2 #define theplu_yat_statistics_pearson_distance_h
26 #include "averager_traits.h"
27 #include "yat/utility/iterator_traits.h"
31 namespace statistics {
58 template <
typename ForwardIterator1,
typename ForwardIterator2>
59 double operator()(ForwardIterator1 beg1, ForwardIterator1 end1,
60 ForwardIterator2 beg2)
const
63 add(ap,beg1,end1,beg2);
64 return 1-ap.correlation();
Calculates the Pearson correlation distance between two points given by elements of ranges...
Definition: PearsonDistance.h:38
double operator()(ForwardIterator1 beg1, ForwardIterator1 end1, ForwardIterator2 beg2) const
Calculates the Pearson correlation distance between elements of two ranges.
Definition: PearsonDistance.h:59
void add(T &o, ForwardIterator first, ForwardIterator last, const classifier::Target &target)
Definition: utility.h:304
averager_traits< typename utility::weighted_if_any2< Iterator1, Iterator2 >::type >::pair_type type
Definition: averager_traits.h:104