Changeset 230
 Timestamp:
 Feb 21, 2005, 3:48:15 PM (18 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/src/AveragerPair.h
r219 r230 48 48 /// (x_im_x)^2\sum_i (y_im_y)^2}}\f$ 49 49 /// 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_im_x)(y_im_y)}{\sqrt{\sum_i 58 /// (x_im_x)^2\sum_i (y_im_y)^2}}\f$ 59 /// 60 /// @return Pearson correlation coefficient. 51 61 /// 52 62 inline double correlation(void) const … … 71 81 72 82 /// 73 /// @return Average squared d ifferencebetween x and y \f$83 /// @return Average squared deviation between x and y \f$ 74 84 /// \frac{1}{N} \sum (xy)^2 \f$ 75 85 /// 76 inline double ms e(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();} 77 87 78 88 ///
Note: See TracChangeset
for help on using the changeset viewer.