Ignore:
Timestamp:
Sep 25, 2007, 11:35:25 AM (15 years ago)
Author:
Markus Ringnér
Message:

Refs #245 #246 #247

File:
1 edited

Legend:

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

    r865 r890  
    9696  double AveragerPairWeighted::msd(void) const
    9797  {
    98     return ( x_.sum_wxx()+y_.sum_wxx()-2*wxy_)/w_;
     98    return sum_squared_deviation()/w_;
    9999  }
    100100
     
    104104    x_.reset(); y_.reset(); wxy_=0; w_=0;
    105105  }
     106
     107  double AveragerPairWeighted::sum_squared_deviation(void) const
     108  {
     109    return x_.sum_wxx()+y_.sum_wxx()-2*wxy_;
     110  }
     111 
    106112
    107113  double AveragerPairWeighted::sum_w(void) const
Note: See TracChangeset for help on using the changeset viewer.