1
I’m having a problem with my filters IIR
. I’m trying to filter a signal ECG
(Electrogcardiogram) through a filter that passes low IIR, and then through one that passes high IIR. The problem is that this filter is unstable at the beginning. And because it’s unstable, it adds a non-existent peak right at the beginning, then stabilizes.
I tried using the filter by initializing the output values Y
with a value equal to 0
but still remains unstable at first. I think the values of B
and A
are correct because I am copying them from a python
that works properly.
Right now I’m working on C#
(although this will not be very relevant x) )
If anyone can tell me why this instability at the beginning I’d appreciate it.
Thank you.
So, I made a small edit on your question to increase the chances of answer. Take a look to see if it still reflects what you need. PS: Ah, and putting together a chunk of the code you are using can increase the chances of getting answers substantially.
– gustavox