source: trunk/c++_tools/statistics/AveragerPair.cc @ 582

Last change on this file since 582 was 582, checked in by Markus Ringnér, 15 years ago

Modified addding arrays to Averagers so templates are used to allow for addition of all array types with operator[]. Modified Distance so operator() can use arrays of different types.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 391 bytes
Line 
1// $Id: AveragerPair.cc 582 2006-05-09 13:41:40Z markus $
2
3#include <c++_tools/statistics/AveragerPair.h>
4#include <c++_tools/statistics/Averager.h>
5
6#include <cassert>
7#include <utility>
8
9namespace theplu {
10namespace statistics{
11 
12
13  const AveragerPair& AveragerPair::operator+=(const AveragerPair& a)
14  {
15    x_+=a.x_averager();
16    y_+=a.y_averager();
17    xy_+=a.sum_xy();
18    return *this;
19  }
20 
21
22}} // of namespace statistics and namespace theplu
Note: See TracBrowser for help on using the repository browser.