Phase of FIR and IIR filters.

Namespace: dsp::filter

Prototype

static tuple<Vecf, Vecf> frphase(const Design &d, int npts=1024)

Parameters

dTransfert 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) \]