Changeset 427
- Timestamp:
- Dec 8, 2005, 4:46:24 PM (18 years ago)
- Location:
- trunk/lib/statistics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/statistics/Averager.h
r420 r427 58 58 /// @return Number of data points 59 59 /// 60 inline long n(void) const { return n_; }60 inline unsigned long n(void) const { return n_; } 61 61 62 62 /// … … 123 123 124 124 private: 125 long n_;125 unsigned long n_; 126 126 double x_, xx_; 127 127 }; -
trunk/lib/statistics/AveragerPair.h
r420 r427 32 32 /// 33 33 inline AveragerPair(const double x, const double xx, const double y, 34 const double yy, const double xy, const long n)34 const double yy, const double xy, const unsigned long n) 35 35 : x_(Averager(x,xx,n)), y_(Averager(y,yy,n)), xy_(xy) {} 36 36 … … 44 44 /// Adding \a n pairs of data points with value \a x and \a y. 45 45 /// 46 inline void add(const double x, const double y, const long n=1)46 inline void add(const double x, const double y, const unsigned long n=1) 47 47 { x_.add(x,n); y_.add(y,n), xy_ += n*x*y; } 48 48 … … 94 94 /// @return The number of pair of data points. 95 95 /// 96 inline long n(void) const { return x_.n(); }96 inline unsigned long n(void) const { return x_.n(); } 97 97 98 98 ///
Note: See TracChangeset
for help on using the changeset viewer.