NullTransformer#

class NullTransformer(name: str = None)[source]#

Identity transformation \(\q\mapsto\q\).

This transformer can be used in conjunction with TransformerMulti if separate transformations are desired for individual state variables but one of those state variable is to remain unchanged.

Parameters:
namestr or None

Label for the state variable that this transformer “acts” on.

Properties:
name#

Label for the state variable that this transformer acts on.

state_dimension#

Dimension \(n\) of the state.

Methods:

fit

Set the state dimension.

fit_transform

Do nothing but set the state dimension; this transformation does not affect the states.

inverse_transform

Do nothing; this transformation does not affect the states.

load

Load a previously saved transformer from an HDF5 file.

save

Save the transformer to an HDF5 file.

transform

Do nothing; this transformation does not affect the states.

transform_ddts

Do nothing; this transformation does not affect derivatives.

verify

Verify that transform() and inverse_transform() are consistent and that transform_ddts(), if implemented, is consistent with transform().