frmag
Magnitude of a FIR or IIR filter.
Namespace: dsp::filter
Prototype
tuple<Vecf, Vecf> frmag(const FRat<T> &h, unsigned int npts=1024)
Parameters
h | Transfert function to be analyzed. |
npts | Frequency resolution. |
Returns
A tuple of 2 vectors: the frequencies \(f_k\) (normalized, between 0 and 0.5), and the magnitudes \(y_k\).
Description
This fonction computes the magnitude (e.g., the absolute value) of the frequency response for a linear filter: