python – IIR implementation – RuntimeWarning: overflow encountered in double_scalars – Signal Processing Stack Exchange

python – IIR implementation – RuntimeWarning: overflow encountered in double_scalars – Signal Processing Stack Exchange

I have implemented a butter filter in python using this function:

b and a:

Now I have to do an implementation. When testing different algorithms, I have the following problem:

How to avoid this problem? Perform scaling? The problem, in my opinion, is the b coefficients.
When I call the function lfilter everything is OK

This content was originally published here.

Leave a Reply

%d bloggers like this: