Changeset 911
- Timestamp:
- Sep 29, 2007, 2:41:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/Averager.h
r910 r911 26 26 02111-1307, USA. 27 27 */ 28 29 #include "yat/utility/IteratorTraits.h" 28 30 29 31 #include <cmath> … … 198 200 void add(Averager& a, Iter first, Iter last) 199 201 { 202 add(a, first, last, 203 typename utility::weighted_iterator_traits<Iter>::type()); 204 } 205 206 // unweighted impl. (weighted version is not implemented and should 207 // not compile) 208 template <typename Iter> 209 void add(Averager& a, Iter first, Iter last, 210 utility::unweighted_type type) 211 { 200 212 for ( ; first != last; ++first) 201 213 a.add(*first);
Note: See TracChangeset
for help on using the changeset viewer.