Computes the group delay.

Namespace: dsp::filter

Prototype

static tuple<Vecf, Vecf> frgroup(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), et and the group delay (expressed in number of samples).

Description

\[ G(\omega) = \frac{d\arg H(\omega)}{d\omega} \]

Example

  soit h = design_lexp(0.5);
  soit [fr, temps] = frgroup(h);
  // temps(i) est le délais pour la fréquence fr(i)
  Figure f;
  f.plot(fr, temps, "b-", "Temps de groupe");