Calculating noisy signal derivatives is a highly ill problem. According to the algorithm proposed in the paper A general approach to derivative calculation using wavelet transform, a wavelet-based method can be used to suppress the noise. This repositary uses this principle to calculate derivations.
The requirements for input data are
- Time vector to be monotonic;
- f value vector to be periodic.
The second requirement can be readily fulfilled for an acyclic signal by adding a dummy extrapolation to the original signal.
Furthermore, to suppress the boundary effect, a fake-repeat trick is suggested as shown in the example file.
Odd-Parity Extrapolation Technique is used in this version, which leads to the conservation of derivative information of the raw data.
Let
Define derivative operator
Then we have association law of two operators
Proof
It can be shown with a direct computation as follows (for simplicity, the subscript
With
Zhaoyi Yan (2021). Derivatives of the noisy signal based on Gaussian wavelet (https://www.mathworks.com/matlabcentral/fileexchange/102549-derivatives-of-the-noisy-signal-based-on-gaussian-wavelet), MATLAB Central File Exchange. Retrieved November 24, 2021.