ddt_uniform()#
- ddt_uniform(states, dt, order=2)[source]#
Forward, central, and backward differences for estimating the first derivative.
- Parameters:
- states(r, k) ndarray
State snapshots:
states[:, j]
is the state at time \(t_j\).- dtfloat
Time step between snapshots.
- orderint {2, 4, 6}
The order of the derivative approximation.
- Returns:
- ddts(r, k) ndarray
Time derivative estimates corresponding to the state snapshots.