In order to calculate derivatives using the Savicki-Naked smoothing filter, the calculation of polynomial coefficients has the parameter b, the value b [derivative] must be set to 1.0, the array will be used in the LU decomposition call.
The key to obtaining the right to derivatives is understanding the polynomial formula: Y = a0 + a1 * z + a2 * z ^ 2 + ... + ak * z ^ k. The values ββa0, a1, a2, ..., ak are actually smoothed values ββin the moving window, z = (x - x0) / h, for the central point of the moving window we can assume z = 0, since x = x0.
Therefore, in derivative calculations:
dY/dx = a1/h; and d2Y/dx2 = 2a2/h^2.
Where a1, a2 are the smoothed y values ββusing the coefficients calculated for the corresponding derivatives.
Lin song yang
source share