estimate()#

UniformFiniteDifferencer.estimate(states, inputs=None)[source]#

Estimate the first time derivatives of the states using finite differences.

The stencil and order of the method are determined by the scheme attribute.

Parameters:
states(r, k) ndarray

State snapshots, either full or (preferably) reduced.

inputs(m, k) ndarray or None

Inputs corresponding to the state snapshots, if applicable.

Returns:
_states(r, k’) ndarray

Subset of the state snapshots.

ddts(r, k’) ndarray

First time derivatives corresponding to _states.

_inputs(m, k’) ndarray or None

Inputs corresponding to _states, if applicable. Only returned if inputs is provided.