Phase of FIR and IIR filters.

Namespace: dsp::filter

Prototype

tuple<Vecf, Vecf> frphase(const FRat<T> &h, int npts=1024)

Parameters

hTransfert function to be analyzed.
nptsFrequency resolution.

Returns

A tuple of 2 vectors : the frequencies \(f_k\) (normalized, between 0 and 0.5), and the phases \(y_k\) (in radians).

Description

This function computes the phase response of a FIR or IIR filter: \[ y_k = \arg H(f_k) \]