#include #include #include #include #include #include #include "firpm/barycentric.h" #include "firpm/pm.h" #include "firpm/cheby.h" static void printInfo(pmoutput_t& output, long double eps) { if (output.q < eps) { std::cout << "Final delta = " << output.delta << std::endl; std::cout << "Iteration count = " << output.iter << std::endl; } else { std::cout << "Iteration count = NC\n"; } } int main(int argc, char **argv) { std::cout << "START Parks-McClellan with AFP\n"; pmoutput_t output3 = firpmAFP(119, {0.000000000000000e+00, 8.000000000000000e-03, 9.920000000000000e-01, 1.000000000000000e+00}, {1.000000000000000e+00, 1.000201019702234e+00, 0.000000000000000e+00, 0.000000000000000e+00}, {1, 1}); printInfo(output3, 0.01); std::cout << "FINISH Parks-McClellan with AFP\n"; exit(0); }