Closed stephane-caron closed 6 years ago
Thanks @BenjaminNavarro !
I merged this, and added a very basic unit test for it.
I'm leaving the issue open for now, as the timeStep should be handled differently for higher order derivatives, ie when s > 1
ah yes you're right. It sould be divided by dt^s right? If it's just that, I'll make the fix.
Implemented in f1f4ef4304fcc41fa18538f04e112d3c5e10d7ab, thanks for the feedback ;)
The current config only allows one to specify the order of the derivative. However, for time series there is also a time step between data points.
Example for a first-order derivative: with the current API, one should post-divide by the time step:
It would be nice to be able to specify the timestep, e.g. in
SavitzkyGolayFilterConfig
, and read the time derivatives as filter outputs directly.