source: branches/better_matrix_class/lib/statistics/Averager.cc @ 415

Last change on this file since 415 was 415, checked in by Jari Häkkinen, 17 years ago

Removed some gslapi copy intensive operators.
Made gslapi assignment operators ignore views, and change them
into normal vectors if assigned.
Cleaning up of code aswell.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 347 bytes
Line 
1// $Id: Averager.cc 415 2005-12-01 15:52:36Z jari $
2
3#include <c++_tools/statistics/Averager.h>
4#include <c++_tools/gslapi/vector.h>
5
6#include <sys/types.h>
7#include <ostream>
8
9namespace theplu {
10namespace statistics{
11 
12
13  const Averager& Averager::operator+=(const Averager& a)
14  {
15    n_+=a.n_;
16    x_+=a.x_;
17    xx_+=a.xx_;
18    return *this;
19  }
20
21
22}} // of namespace statistics and namespace theplu
Note: See TracBrowser for help on using the repository browser.