Least-Squares FIR Filter Coefficient Synthesis C++ Software
—C++ Version 20 Source Files
—Related Papers
These papers essentially refer to the same algorithm. The code for this filter design technique in included with most of the software downloads as module LS_FIR_Filter {.h,.cpp}.
During the conversion of the MATLAB code to C++, an error was made in converting the indices from MATLAB's 1-based to the C++ 0-based numbering. Change 'n' to '(n-1)' in equation (13). Note, label (13) was mistakenly omitted.
During the conversion of the MATLAB code to C++, an error was made in converting the indices from MATLAB's 1-based to the C++ 0-based numbering. Change 'n' to '(n-1)' in equations (30), (33), (37), (39), (41), and (43).