2019-08-07 05:06:55 +00:00
|
|
|
#include <modern/lib.hpp>
|
|
|
|
|
|
|
|
#include <fmt/format.h>
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
#include <tuple>
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
std::vector<double> input = {1.2, 2.3, 3.4, 4.5};
|
2020-08-03 18:16:52 -04:00
|
|
|
|
2019-08-07 05:06:55 +00:00
|
|
|
auto [mean, moment] = accumulate_vector(input);
|
|
|
|
|
|
|
|
fmt::print("Mean: {}, Moment: {}\n", mean, moment);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|