Open
Description
I was having a hard time to have nk.ecg_preprocess to filter my signal data using a "butter" filter of order 4. Looking the source code I see that the function is multiplying the order parameter by the sampling rate:
order = int(filter_order * sampling_rate)
So, after I passed the order parameter as 4/250 (250 was my signal sampling rate) I got it to work as expected.
Is there any reason why that function is expecting the filter order paramenter to be divided by the sampling rate? AFAIK, that is not normal behavior expected by the biosppy.signals.tools.filter_signal function (which nk.ecg_preprocess uses) or any other filtering libraries I have used so far (SciPy, Matlab,...).
Metadata
Metadata
Assignees
Labels
No labels