verify()#
- UniformFiniteDifferencer.verify(plot: bool = False, return_errors=False)#
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. IfFalse
(default), print a report of the relative errors.- return_errorsbool
If
True
, return the errors for each test as a dictionary. IfFalse
(default), return nothing.
- Returns:
- errorsdict
Estimation errors for each test case. Time steps are listed as
errors[dts]
. Only returned ifreturn_errors=True
.