cupyx.scipy.signal.bilinear#

cupyx.scipy.signal.bilinear(b, a, fs=1.0)[source]#

Return a digital IIR filter from an analog one using a bilinear transform.

Transform a set of poles and zeros from the analog s-plane to the digital z-plane using Tustin’s method, which substitutes 2*fs*(z-1) / (z+1) for s, maintaining the shape of the frequency response.

Parameters:
  • b (array_like) – Numerator of the analog filter transfer function.

  • a (array_like) – Denominator of the analog filter transfer function.

  • fs (float) – Sample rate, as ordinary frequency (e.g., hertz). No prewarping is done in this function.

Returns:

  • b (ndarray) – Numerator of the transformed digital filter transfer function.

  • a (ndarray) – Denominator of the transformed digital filter transfer function.