Changeset 244


Ignore:
Timestamp:
Feb 22, 2005, 4:18:36 PM (17 years ago)
Author:
Peter
Message:

bug in ccc function fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/AveragerPair.h

    r230 r244  
    5151    ///
    5252    inline double ccc(void) const
    53       { return ( (x_.variance()>0 || y_.variance()>0 || msd()) ?
    54                  (covariance() / (x_.variance()+y_.variance()+msd()) ) : 0); }
     53      { return ( (x_.variance() || y_.variance() || x_.mean()-y_.mean() ) ?
     54                 ((covariance()) /
     55                  ((x_.variance()+y_.variance()) +
     56                   (x_.mean()-y_.mean())*(x_.mean()-y_.mean()))) : 0); }
    5557 
    5658    ///
Note: See TracChangeset for help on using the changeset viewer.