Ticket #2671: test.cpp

File test.cpp, 322 bytes (added by m.de.wever@…, 14 years ago)

test program to reproduce the problem

Line 
1#include <boost/accumulators/accumulators.hpp>
2#include <boost/accumulators/statistics.hpp>
3
4#include <iostream>
5
6int main()
7{
8 using namespace boost::accumulators;
9 accumulator_set<unsigned, stats<tag::moment<4> > > acc;
10
11 for(unsigned i = 125 ; i < 150; ++i) {
12
13 acc(i);
14 std::cerr << moment<4>(acc) << '\n';
15 }
16}
17