inverse_transform()#
- ShiftTransformer.inverse_transform(states_shifted, inplace=False, locs=None)[source]#
Apply the inverse shift.
- Parameters:
- states_shifted(n, …) or (p, …) ndarray
Matrix of n-dimensional shifted snapshots, or a single shifted snapshot.
- inplacebool
If
True
, overwritestates_shifted
during the inverse transformation. IfFalse
, create a copy of the data to untransform.- locsslice or (p,) ndarray of integers or None
If given, assume
states_shifted
contains the transformed snapshots at only the p indices described bylocs
.
- Returns:
- states_unshifted: (n, …) or (p, …) ndarray
Matrix of n-dimensional unshifted snapshots, or the p entries of such at the indices specified by
locs
.
- Raises:
- ValueError
If the
states_shifted
do not align with thelocs
(when provided) or thestate_dimension
(whenlocs
is not provided).