#include #include #include #include void create_plot_file(std::string filename, const math::csignal& tfd) { std::ofstream data_file(filename + ".data"); for (int i=0; i 1) { n = atoi(argv[1]); } for (int i=0; i<100; ++i) { s.push_back(math::complex(std::sin(2*math::pi()*f0*float(i)/fe), 0)); } std::cout << math::mean(s) << std::endl; math::csignal tfd; clock_t begin = std::clock(); for (int i=0; i