-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (23 loc) · 735 Bytes
/
main.cpp
File metadata and controls
32 lines (23 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <hello/world.h>
#include <saying.h>
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/mean.hpp>
#include <boost/accumulators/statistics/moment.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <iostream>
#include "alphabet/abc.h"
using namespace boost::accumulators;
int main() {
hello::Hello hello{saying};
hello.it();
std::cout << a::b::c::d::e::f::g::h::i::j::k::l::m::n::o::p::q::r::s::t::u::
w::x::y::z;
accumulator_set<double, stats<tag::mean, tag::moment<2> > > acc;
acc(1.2);
acc(2.3);
acc(3.4);
acc(4.5);
std::cout << "Mean: " << mean(acc) << std::endl;
std::cout << "Moment: " << moment<2>(acc) << std::endl;
return 0;
}