ddt()

Contents

ddt()#

ddt(states, *args, **kwargs)[source]#

Finite differences for estimating the first derivative.

This is a convenience function that calls either ddt_uniform() or ddt_nonuniform(), depending on the arguments.

Parameters:
states(r, k) ndarray

State snapshots: states[:, j] is the state at time \(t_j\).

dtfloat

Time step between snapshots (in the case of a time domain with uniform spacing).

orderint {2, 4, 6} (optional)

The order of the derivative approximation.

t(k,) ndarray

Time domain corresponding to the state snapshots. May or may not be uniformly spaced.

Returns:
ddts(r, k) ndarray

Time derivative estimates corresponding to the state snapshots.