verify()#
- NullTransformer.verify(tol: float = 0.0001)#
Verify that
transform()
andinverse_transform()
are consistent and thattransform_ddts()
, if implemented, is consistent withtransform()
.The
transform()
/inverse_transform()
consistency check verifies thatinverse_transform(transform(states)) == states
.The
transform_ddts()
consistency check usesopinf.ddt.ddt()
to estimate the time derivatives of the states and the transformed states, then verfies that the relative difference betweentransform_ddts(opinf.ddt.ddt(states, t))
andopinf.ddt.ddt(transform(states), t)
is less thantol
, wheret = numpy.linspace(0, 0.1, 20)
.
- Parameters:
- tolfloat > 0
Tolerance for the finite difference check of
transform_ddts()
. Only used iftransform_ddts()
is implemented.