design_fir_eq (1)

Equiripple FIR design (IRLS method).


Prototype

Vecf design_fir_eq(int n, const Vecf &d, const Vecf &w)

Parameters

nFilter order
dDesired frequency response
wWeighting coefficients vector (must have the same length as d)

Returns

Coefficients vector of the FIR filter (vector of length n)

Description

This function build an equiripple filter, using the IRLS method (Iteratively Reweighted Least Square).

See also

design_fir_eq(int, const vector<FreqIntervalSpec> &)