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:
371 bytes
|
Rev | Line | |
---|
[138] | 1 | // $Id: AveragerPair.cc 415 2005-12-01 15:52:36Z jari $ |
---|
| 2 | |
---|
[295] | 3 | #include <c++_tools/statistics/AveragerPair.h> |
---|
| 4 | #include <c++_tools/statistics/Averager.h> |
---|
[138] | 5 | |
---|
| 6 | #include <utility> |
---|
| 7 | |
---|
| 8 | namespace theplu { |
---|
[197] | 9 | namespace statistics{ |
---|
[138] | 10 | |
---|
| 11 | |
---|
| 12 | const AveragerPair& AveragerPair::operator+=(const AveragerPair& a) |
---|
| 13 | { |
---|
| 14 | x_+=a.x_averager(); |
---|
| 15 | y_+=a.y_averager(); |
---|
| 16 | xy_+=a.sum_xy(); |
---|
| 17 | return *this; |
---|
| 18 | } |
---|
| 19 | |
---|
[415] | 20 | |
---|
[197] | 21 | }} // of namespace statistics and namespace theplu |
---|
Note: See
TracBrowser
for help on using the repository browser.