Changeset 2566


Ignore:
Timestamp:
Sep 26, 2011, 2:58:58 AM (10 years ago)
Author:
Peter
Message:

optimization

File:
1 edited

Legend:

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

    r2565 r2566  
    6262  double AveragerPair::correlation(void) const
    6363  {
    64     return covariance() / std::sqrt(x_.variance()*y_.variance());
     64    return sum_xy_centered() /
     65      std::sqrt(x_.sum_xx_centered() * y_.sum_xx_centered());
    6566  }
    6667
Note: See TracChangeset for help on using the changeset viewer.