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
, modifyddts
inplace. IfFalse
(default), return a new array.
- Returns:
- ddts_scaled(n, …) ndarray
Scaled snapshot time derivatives.
- Raises:
- AttributeError
If
scaler
is a number (not an array) butfit()
orfit_transform()
have not been called yet.- ValueError
If the
ddts
do not align with thestate_dimension
.