#include <remez_fir.h>
Public Member Functions | |
| remez_fir () | |
Static Public Member Functions | |
| static void | remez (smart_array< float_type > filt, int n, int numband, smart_array< float_type > bands, smart_array< float_type > des, smart_array< float_type > weight, int type) |
Calculates the optimal (in the Chebyshev/minimax sense) FIR filter impulse response given a set of band edges, the desired reponse on those bands, and the weight given to the error in those bands.
Inputs:
int numtaps - Number of filter coefficients
int numband - Number of bands in filter specification
float_type[] bands - User-specified band edges [2 * numband]
float_type[] des - User-specified band responses [numband]
float_type[] weight - User-specified error weights [numband]
int type - Type of filter
Output:
float_type[] h - Impulse response of final filter [numtaps]
| SPUC::remez_fir::remez_fir | ( | ) | [inline] |
| void SPUC::remez_fir::remez | ( | smart_array< float_type > | filt, | |
| int | n, | |||
| int | numband, | |||
| smart_array< float_type > | bands, | |||
| smart_array< float_type > | des, | |||
| smart_array< float_type > | weight, | |||
| int | type | |||
| ) | [static] |
1.4.7