Changeset 887 for trunk/yat/statistics


Ignore:
Timestamp:
Sep 24, 2007, 9:52:03 PM (16 years ago)
Author:
Peter
Message:

made add function template so it accepts AveragerWeighted? too. Also added some tests #refs 246

File:
1 edited

Legend:

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

    r886 r887  
    195195     \brief adding a ranges of values to Averager \a a
    196196   */
    197   template <class Iter>
    198   void add(Averager& a, Iter first, Iter last)
     197  template <class Aver, typename Iter>
     198  void add(Aver& a, Iter first, Iter last)
    199199  {
    200200    for ( ; first != last; ++first)
Note: See TracChangeset for help on using the changeset viewer.