- Timestamp:
- Feb 25, 2007, 7:29:47 PM (16 years ago)
- Location:
- trunk/yat/statistics
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/AveragerPair.cc
r718 r772 72 72 double AveragerPair::msd(void) const 73 73 { 74 return ( x_averager().sum_xx()+y_averager().sum_xx()-2*sum_xy())/n();74 return sum_squared_deviation()/n(); 75 75 } 76 76 … … 89 89 x_=a.x_; y_=a.y_; xy_=a.xy_; 90 90 return *this; 91 } 92 93 double AveragerPair::sum_squared_deviation(void) const 94 { 95 return x_averager().sum_xx()+y_averager().sum_xx()-2*sum_xy() ; 91 96 } 92 97 -
trunk/yat/statistics/AveragerPair.h
r767 r772 130 130 131 131 /// 132 /// @return Sum of squared deviation between x and y \f$ 133 /// \sum (x-y)^2 \f$ 134 /// 135 double sum_squared_deviation(void) const; 136 137 /// 132 138 /// @return \f$ \sum_i (x_i-m_x)(y_i-m_y) \f$ 133 139 /// -
trunk/yat/statistics/AveragerPairWeighted.cc
r718 r772 90 90 91 91 92 double AveragerPairWeighted::msd(void) const 93 { 94 return ( x_.sum_wxx()+y_.sum_wxx()-2*wxy_)/w_; 95 } 96 97 92 98 void AveragerPairWeighted::reset(void) 93 99 { -
trunk/yat/statistics/AveragerPairWeighted.h
r767 r772 120 120 double covariance(void) const; 121 121 122 /** 123 @return \f$ \frac{\sum w_xw_y(x-y)^2}{\sum w_xw_y} \f$ 124 */ 125 double msd(void) const; 126 122 127 /// 123 128 /// @brief Reset everything to zero -
trunk/yat/statistics/AveragerWeighted.h
r757 r772 163 163 164 164 /// 165 /// @return \f$ \sum w_i x_i^2 \f$ 166 /// 167 double sum_wxx(void) const; 168 169 /// 165 170 /// @return \f$ \sum_i w_i (x_i-m)^2\f$ 166 171 /// … … 198 203 double sum_wwxx(void) const; 199 204 200 ///201 /// @return \f$ \sum w_i x_i^2 \f$202 ///203 double sum_wxx(void) const;204 205 205 const Averager& wx(void) const; 206 206 const Averager& w(void) const; -
trunk/yat/statistics/Makefile.am
r683 r772 26 26 libstatistics_la_SOURCES = Averager.cc AveragerPair.cc \ 27 27 AveragerWeighted.cc AveragerPairWeighted.cc Distance.cc \ 28 Fisher.cc FoldChange.cc Histogram.cc Pearson.cc \28 Euclidean.cc Fisher.cc FoldChange.cc Histogram.cc Pearson.cc \ 29 29 PearsonDistance.cc ROC.cc SAM.cc Score.cc SNR.cc tScore.cc \ 30 30 utility.cc WilcoxonFoldChange.cc … … 33 33 34 34 include_statistics_HEADERS = Averager.h AveragerPair.h \ 35 AveragerWeighted.h AveragerPairWeighted.h Distance.h Fisher.h \ 35 AveragerWeighted.h AveragerPairWeighted.h Distance.h Euclidean.h \ 36 Fisher.h \ 36 37 FoldChange.h Histogram.h Pearson.h PearsonDistance.h ROC.h \ 37 38 SAM.h Score.h SNR.h tScore.h utility.h WilcoxonFoldChange.h
Note: See TracChangeset
for help on using the changeset viewer.