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

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

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.

Returns:

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

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

Examples

See the IIR filters example.