-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Write a function detecting drift in the data. The idea would be that the user gives:
- a range in which to apply the function (similar to other tagging functions)
- the maximum slope a signal is expected to have over a certain period (see below)
- the period over which a certain slope is allowed
This function could calculate the slope of the data in a certain given period (by for example fitting a line through it) and compare it with the maximum expected slope. In first instance, it would be interesting for the user to know if drift is present, secondly it would be good to be able to correct for it.
Some additional sources of information/inspiration:
- https://dsp.stackexchange.com/questions/27468/how-to-remove-or-filter-the-drift-problem-in-measured-strain-signal
- https://docs.scipy.org/doc/scipy/reference/generated/scipy.signal.detrend.html#scipy.signal.detrend
@jorasinghr could you have a look at this and let me know if things are unclear?