Changeset 220
- Timestamp:
- Dec 30, 2004, 11:31:34 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/WeightedAverager.h
r215 r220 68 68 69 69 /// 70 /// The varianceis calculated as \f$ \frac{\sum w_i^2}{(\sum70 /// The standard deviation is calculated as \f$ \frac{\sum w_i^2}{(\sum 71 71 /// w_i)^2-\sum w_i^2}\frac{\sum w_i(x_i-m)^2}{\sum w_i} \f$ 72 /// @return squared error73 72 /// 74 /// @return varianceof mean73 /// @return standard deviation of mean 75 74 /// 76 75 inline double standard_error(void) const 77 { return (squared_sum()/((sum_w()*sum_w())-squared_sum())76 { return sqrt(squared_sum()/((sum_w()*sum_w())-squared_sum()) 78 77 *squared_error()/sum_w()); } 79 78
Note: See TracChangeset
for help on using the changeset viewer.