Changeset 230


Ignore:
Timestamp:
Feb 21, 2005, 3:48:15 PM (17 years ago)
Author:
Peter
Message:

Interface changed. mse changed to be msd and ccc statistics added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/AveragerPair.h

    r219 r230  
    4848    /// (x_i-m_x)^2\sum_i (y_i-m_y)^2}}\f$
    4949    ///
    50     /// @return Pearson correlation.
     50    /// @return Concordence correlation coefficient.
     51    ///
     52    inline double ccc(void) const
     53      { return ( (x_.variance()>0 || y_.variance()>0 || msd()) ?
     54                 (covariance() / (x_.variance()+y_.variance()+msd()) ) : 0); }
     55 
     56    ///
     57    /// \f$\frac{\sum_i (x_i-m_x)(y_i-m_y)}{\sqrt{\sum_i
     58    /// (x_i-m_x)^2\sum_i (y_i-m_y)^2}}\f$
     59    ///
     60    /// @return Pearson correlation coefficient.
    5161    ///
    5262    inline double correlation(void) const
     
    7181
    7282    ///
    73     /// @return Average squared difference between x and y \f$
     83    /// @return Average squared deviation between x and y \f$
    7484    /// \frac{1}{N} \sum (x-y)^2 \f$
    7585    ///
    76     inline double mse(void) { return x_.mean_sqr()+y_.mean_sqr()-2*mean_xy(); }
     86    inline double msd() const {return x_.mean_sqr()+y_.mean_sqr()-2*mean_xy();}
    7787
    7888    ///
Note: See TracChangeset for help on using the changeset viewer.