verify()#
- TransformerMulti.verify(tol: float = 0.0001)[source]#
Verify that
transform()andinverse_transform()are consistent and thattransform_ddts(), if implemented in each transformer, 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. If this check fails, consider using a finer time mesh.
- Parameters:
- tolfloat > 0
Tolerance for the finite difference check of
transform_ddts(). Only used iftransform_ddts()is implemented.