Ignore:
Timestamp:
Sep 4, 2006, 5:16:57 PM (16 years ago)
Author:
Markus Ringnér
Message:

Fixed problems with Averager that sometimes appeared as failures in averager_test when optimization is turned on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/c++_tools/statistics/Averager.cc

    r616 r620  
    66namespace statistics{
    77 
     8  Averager::Averager(void)
     9    : n_(0), x_(0), xx_(0)
     10  {
     11  }
    812
     13  Averager::Averager(double x, double xx, u_long n)
     14    : n_(n), x_(x), xx_(xx)
     15  {
     16  }
     17 
     18  Averager::Averager(const Averager& a)
     19    : n_(a.n_), x_(a.x_), xx_(a.xx_)
     20  {
     21  }
     22 
    923  const Averager& Averager::operator+=(const Averager& a)
    1024  {
Note: See TracChangeset for help on using the changeset viewer.