Ignore:
Timestamp:
Feb 25, 2007, 7:29:47 PM (15 years ago)
Author:
Peter
Message:

fixes #126 and added some functions in AveragerPair? and AveragerPairWeighted?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/AveragerPair.cc

    r718 r772  
    7272  double AveragerPair::msd(void) const
    7373  {
    74     return ( x_averager().sum_xx()+y_averager().sum_xx()-2*sum_xy() )/n();
     74    return sum_squared_deviation()/n();
    7575  }
    7676
     
    8989    x_=a.x_; y_=a.y_; xy_=a.xy_;
    9090    return *this;
     91  }
     92
     93  double AveragerPair::sum_squared_deviation(void) const
     94  {
     95    return x_averager().sum_xx()+y_averager().sum_xx()-2*sum_xy() ;
    9196  }
    9297
Note: See TracChangeset for help on using the changeset viewer.