transform_ddts()#
- ScaleTransformer.transform_ddts(ddts, inplace=False)[source]#
Apply the scaling; the transformation for derivatives is the same as for snapshots.
- Parameters:
- ddts(n, …) ndarray
Matrix of n-dimensional snapshot time derivatives, or a single snapshot time derivative.
- inplacebool
If
True, modifyddtsinplace. IfFalse(default), return a new array.
- Returns:
- ddts_scaled(n, …) ndarray
Scaled snapshot time derivatives.
- Raises:
- AttributeError
If
scaleris a number (not an array) butfit()orfit_transform()have not been called yet.- ValueError
If the
ddtsdo not align with thestate_dimension.