sdr.IIR.frequency_response_log(sample_rate: float = 1.0, N: int = 1024, decades: int = 4) tuple[NDArray, NDArray]

Returns the frequency response \(H(\omega)\) of the IIR filter on a logarithmic frequency axis.

Parameters:
sample_rate: float = 1.0

The sample rate \(f_s\) of the filter in samples/s.

N: int = 1024

The number of samples in the frequency response.

decades: int = 4

The number of frequency decades to plot.

Returns:

  • The frequencies \(f\) from \(0\) to \(f_s/2\) in Hz. The frequencies are logarithmically-spaced.

  • The frequency response of the IIR filter \(H(\omega)\).

Examples

See the IIR filters example.