Getting NaN while using The ButterWorth Band Pass Filter #47
Answered
by
ar1st0crat
Richard-Quinlivan
asked this question in
Q&A
-
I'm trying to use the ButterWorth filters to make a band pass filter. But for some reason I keep getting NaN as the result. I've tried it with the Process() function doing it float by float (this is the first implementation below) and all at once with the ApplyTo() method on a Signal (the second Implementation below). Both give me a list of NaN. I'm not sure what I'm doing wrong. |
Beta Was this translation helpful? Give feedback.
Answered by
ar1st0crat
Apr 9, 2021
Replies: 1 comment 1 reply
-
Hi! Frequencies are normalized onto [0, 0.5] range. So you need to divide them by If you worked with sciPy/MATLAB before, you'll also probably find this page useful. Hope it helps. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Richard-Quinlivan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
Frequencies are normalized onto [0, 0.5] range. So you need to divide them by
fs
(not byfs/2
). See here.If you worked with sciPy/MATLAB before, you'll also probably find this page useful.
Hope it helps.