Ignore:
Timestamp:
Sep 25, 2007, 11:35:25 AM (15 years ago)
Author:
Markus Ringnér
Message:

Refs #245 #246 #247

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/AveragerPairWeighted.h

    r865 r890  
    133133
    134134    ///
     135    /// @return Sum of weighted squared deviation between x and y \f$
     136    /// \sum (w_xx-wyy)^2 \f$
     137    ///
     138    double sum_squared_deviation(void) const;
     139
     140    ///
    135141    /// @return \f$ \sum w_xw_y \f$
    136142    ///
     
    169175
    170176  };
     177
     178  /**
     179     \brief adding a ranges of values to AveragerPairWeighted \a ap
     180  */
     181  template <class Iter1, class Iter2>
     182  void add(AveragerPairWeighted& ap, Iter1 first1, Iter1 last1, Iter2 first2)
     183  {
     184    for ( ; first1 != last1; ++first1, ++first2)
     185      ap.add(first1.data(), first2.data(),first1.weight(),first2.weight());
     186  }
     187
     188
     189
    171190
    172191  template <typename T1,typename T2,typename T3,typename T4>
Note: See TracChangeset for help on using the changeset viewer.