phyphox Forums
add Butterworth filter to analysis module - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: App-Feedback (https://phyphox.org/forums/forumdisplay.php?fid=6)
+--- Forum: Feature requests (https://phyphox.org/forums/forumdisplay.php?fid=8)
+--- Thread: add Butterworth filter to analysis module (/showthread.php?tid=1841)



add Butterworth filter to analysis module - pietropicerno - 12-12-2023

Hi Jens,
I was wondering whether you're considering to add aButterworth filtet as an analysis module choosing the order, the cutoff frequency and th type (low/high). Such a filter is commonly used to soomth acc/gyro signals in movment analysis.
Cheers,
Pietro


RE: add Butterworth filter to analysis module - Jens Noriʇzsɔɥ - 12-12-2023

We have put it in on our list as it appears to make sense to have it as an independent module – we are not so sure about the effort yet that we have to spent (research the numerics and its stability).

Would technically FFT, multiply Butterworth characteristic, invFFT work? Then you could already play around with it…


RE: add Butterworth filter to analysis module - pietropicerno - 12-12-2023

Hi Jens, thanks for replying. So you mean to use fft to get the frequency-domain representation of the signal, and then set the power of unwanted frequencies to zero, followed by ifft to recover the filtered data in the time domain? I'm afraid the approach you suggested would introduce latency and can create undesirable ringing. But I'll try to investigate it. Thanks, Pietro


RE: add Butterworth filter to analysis module - Jens Noriʇzsɔɥ - 12-13-2023

We thought of multiplying the (smooth) Butterworth weight function frequency-wise with the FFT. We are not yet sure if there are unwanted discretisation effects though…


RE: add Butterworth filter to analysis module - pietropicerno - 12-13-2023

ok Jens let me know about your progress!
Thanks, Pietro