1 #ifndef _theplu_yat_statistics_averagerpair_
2 #define _theplu_yat_statistics_averagerpair_
30 #include "yat/utility/iterator_traits.h"
32 #include <boost/concept_check.hpp>
63 void add(
const double x,
const double y,
const long n=1);
72 double ccc(
void)
const;
100 double msd(
void)
const;
115 double sum_xy(
void)
const;
153 void xy_add(
double mx,
double my,
double xy_centered,
long n);
161 template <
class InputIterator1,
class InputIterator2>
163 InputIterator2 first2)
165 BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator1>));
166 BOOST_CONCEPT_ASSERT((boost::InputIterator<InputIterator2>));
169 for ( ; first1 != last1; ++first1, ++first2)
170 ap.
add(*first1, *first2);