eqdisco.dynamics.derivative#

eqdisco.dynamics.derivative(x, t, method='savgol', window=None, order=3)[source]#

Time derivative of sampled signals.

Parameters:
xarray of shape (T,) or (T, d)
tarray of shape (T,) or float

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).

windowint, optional

Savitzky–Golay window (odd); default \(2\max(\text{order}, \lfloor T/400\rfloor)+1\).

Examples using eqdisco.dynamics.derivative#

Differential equations by genetic programming

Differential equations by genetic programming