verify()#

DerivativeEstimatorTemplate.verify(plot: bool = False, return_errors=False)[source]#

Verify that estimate() is consistent in the sense that the all outputs have the same number of columns and test the accuracy of the results on a few test problems.

Parameters:
plotbool

If True, plot the relative errors of the derivative estimation errors as a function of the time step. If False (default), print a report of the relative errors.

return_errorsbool

If True, return the errors for each test as a dictionary. If False (default), return nothing.

Returns:
errorsdict

Estimation errors for each test case. Time steps are listed as errors[dts]. Only returned if return_errors=True.