Changeset 703 for trunk/yat/statistics/AveragerPair.h
- Timestamp:
- Dec 18, 2006, 1:47:44 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/AveragerPair.h
r680 r703 45 45 46 46 /// 47 /// Default constructor47 /// @brief The default constructor 48 48 /// 49 inline AveragerPair(void) : x_(Averager()), y_(Averager()), xy_(0.0) {}50 49 AveragerPair(void); 50 51 51 /// 52 52 /// Constructor taking sum of \a x , \a xx , \a y , \a yy , xy and … … 58 58 59 59 /// 60 /// Copy constructor60 /// The copy constructor 61 61 /// 62 inline AveragerPair(const AveragerPair& a) 63 : x_(a.x_averager()), y_(a.y_averager()), xy_(a.sum_xy()) {} 64 62 AveragerPair(const AveragerPair&); 63 65 64 /// 66 65 /// Adding \a n pairs of data points with value \a x and \a y. 67 66 /// 68 inline void add(const double x, const double y, const unsigned long n=1) 69 { x_.add(x,n); y_.add(y,n), xy_ += n*x*y; } 67 void add(const double x, const double y, const unsigned long n=1); 70 68 71 69 /// … … 131 129 132 130 /// 133 /// Resetseverything to zero131 /// @brief Reset everything to zero 134 132 /// 135 inline void reset(void) { x_.reset(); y_.reset(); xy_=0.0; }133 void reset(void); 136 134 137 135 /// … … 156 154 157 155 /// 158 /// The assigment operator156 /// @brief The assigment operator 159 157 /// 160 inline const AveragerPair& operator=(const AveragerPair& a) 161 { x_=a.x_; y_=a.y_; xy_=a.xy_; return *this; } 158 const AveragerPair& operator=(const AveragerPair& a); 162 159 163 160 ///
Note: See TracChangeset
for help on using the changeset viewer.