Ignore:
Timestamp:
Dec 30, 2004, 11:30:17 PM (18 years ago)
Author:
Peter
Message:

sum_xy_centered(void) added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/AveragerPair.h

    r197 r219  
    6666 
    6767    ///
    68     /// @return The number of pair of data points.
    69     ///
    70     inline long n(void) const { return x_.n(); }
    71 
    72     ///
    7368    /// @return The mean of xy.
    7469    ///
     
    8277
    8378    ///
     79    /// @return The number of pair of data points.
     80    ///
     81    inline long n(void) const { return x_.n(); }
     82
     83    ///
    8484    /// Resets everything to zero
    8585    ///
     
    9090    ///
    9191    inline double sum_xy(void) const { return xy_; }
     92
     93    ///
     94    /// @return \f$ \sum_i (x_i-m_x)(y_i-m_y)\f$
     95    ///
     96    inline double sum_xy_centered(void) const {return xy_-x_.sum_x()*y_.mean();}
    9297
    9398    ///
Note: See TracChangeset for help on using the changeset viewer.