Changeset 2569


Ignore:
Timestamp:
Sep 26, 2011, 3:41:56 AM (10 years ago)
Author:
Peter
Message:

refs #671 optimization

File:
1 edited

Legend:

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

    r2568 r2569  
    5959  double AveragerPairWeighted::correlation(void) const
    6060  {
    61     return covariance() / sqrt(x_.variance()*y_.variance());
     61    return sum_xy_centered() / sqrt(x_.sum_xx_centered()*y_.sum_xx_centered());
    6262  }
    6363
Note: See TracChangeset for help on using the changeset viewer.