transform_ddts()

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, modify ddts inplace. If False (default), return a new array.

Returns:
ddts_scaled(n, …) ndarray

Scaled snapshot time derivatives.

Raises:
AttributeError

If scaler is a number (not an array) but fit() or fit_transform() have not been called yet.

ValueError

If the ddts do not align with the state_dimension.