SciPy

scipy.signal.bilinear

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

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

The bilinear transform substitutes (z-1) / (z+1) for s.