Changeset 949


Ignore:
Timestamp:
Oct 9, 2007, 12:27:01 AM (14 years ago)
Author:
Peter
Message:

fixing bug in AveragerWeighted? so actually weights are used when adding using iterators

File:
1 edited

Legend:

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

    r937 r949  
    216216  {
    217217    for ( ; first != last; ++first)
    218       a.add(utility::iterator_traits_data(first));
     218      a.add(utility::iterator_traits_data(first),
     219            utility::iterator_traits_weight(first));
    219220  }
    220221
Note: See TracChangeset for help on using the changeset viewer.