Ticket #2671: test.cpp
File test.cpp, 322 bytes (added by , 14 years ago) |
---|
Line | |
---|---|
1 | #include <boost/accumulators/accumulators.hpp> |
2 | #include <boost/accumulators/statistics.hpp> |
3 | |
4 | #include <iostream> |
5 | |
6 | int 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 |