Changeset 510


Ignore:
Timestamp:
Feb 18, 2006, 3:21:49 PM (16 years ago)
Author:
Peter
Message:

fixed nan return in AveragerPair::ccc()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/statistics/AveragerPair.h

    r496 r510  
    5656    /// (x_i-m_x)^2+\sum_i (y_i-m_y)^2 + n(m_x-m_y)^2}\f$
    5757    ///
     58    /// In case of a zero denominator - zero is returned.
     59    ///
    5860    /// @return Concordence correlation coefficient.
    5961    ///
    6062    inline double ccc(void) const
    61       { return ( (x_.variance() || y_.variance() || x_.mean()-y_.mean() ) ?
     63      { return ( (x_.variance() && y_.variance() && x_.mean()-y_.mean() ) ?
    6264                 ((2*covariance()) /
    6365                  ((x_.variance()+y_.variance()) +
Note: See TracChangeset for help on using the changeset viewer.