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

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

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.

Returns:

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

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

Examples

See the IIR filters example.