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

Returns the frequency response \(H(e^{j2 \pi f})\) of the IIR filter on a logarithmic frequency axis

Parameters:
sample_rate: float = 1.0

The sample rate 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\) in Hz. The frequencies are logarithmically-spaced.

  • The frequency response of the IIR filter, \(H(e^{j2 \pi f})\).

Examples

See the IIR filters example.