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 RE: add Butterworth filter to analysis module - pietropicerno - 06-07-2024 Hi Jens, I hope you're still around. So: I followed your suggestion and I used FFT for removing high frequency noise and then I used invFFT for reconstructing the signal back. I did the implementation in Matlab and it worked as I succeded in obtaining something very similar to the result of a Butterworth filter. Now the problem with Phyphox is that I do not have a "invFFT" module. Are you planning to release such a module for the editor? Is there any experiment I could refer to? Thanks, Pietro RE: add Butterworth filter to analysis module - Jens Noriʇzsɔɥ - 06-09-2024 FFT and invFFT are almost identical, see https://en.wikipedia.org/wiki/Fast_Fourier_transform, so you could you apply FFT again with minor adjustments. RE: add Butterworth filter to analysis module - pietropicerno - 06-10-2024 ok, got it. I'll try. Thanks Jens! |