eqdisco.dynamics.derivative#
- eqdisco.dynamics.derivative(x, t, method='savgol', window=None, order=3)[source]#
Time derivative of sampled signals.
- Parameters:
- x
arrayofshape(T,)or(T,d) - t
arrayofshape(T,)orfloat Sample times or the (constant) sampling period.
- method{“savgol”, “finite_difference”, “spline”}
Savitzky–Golay local polynomial fit (uniform sampling; robust to noise), second-order central differences, or the derivative of a smoothing spline (
scipy.interpolate.make_smoothing_spline(), smoothing chosen by generalized cross-validation).- window
int,optional Savitzky–Golay window (odd); default \(2\max(\text{order}, \lfloor T/400\rfloor)+1\).
- x