Analysis of a linear filter (plot the different responses).

Namespace: dsp::filter

Prototype

static Figures plot_filter(const Design &d, bool complete=false, float fs=1)

Parameters

dTransfert function to be analyzed.
completIf true, display all the responses (impulse, poles and zeros, etc.). Otherwise, displau only the the frequency response (in magnitude).
fsSampling frequency.

Returns

The new figure.

Description

This function build a new figure, and plots the frequency and time response of the filter, alongside with the zeros / poles diagram.

Example

  // pour cet exemple, on prend une moyenne glissante d'ordre 10
  soit h = Vecf::ones(10) / 10;
  soit f = plot_filtre(h);
  f.afficher();