blockRescale

Rescales the components of input vector u to run from y_min to y_max over the range u_min to u_max

Extends from Interfaces.PartialConverters.MIMO_nin (Converter with multiple inputs and outputs of dimensions nin).

Information

This information is part of the Business Simulation Library (BSL). Please support this work and ► donate.

The vector output y is obtained by rescaling all components of the input vector u to run from y_min to y_max over the range min to max.

Notes

Care has to be taken if enterInputRange = false, as then a vector of identical values will cause division by zero.

See also

RescaleFunctions.rescaleVector

Parameters

TypeNameDefaultDescription
Realu_min-infMinimum value of the original range [u_min, u_max]
Realu_maxinfMaximum value of the original range [u_min, u_max]
Realy_min0Minimum value of the transformed range [y_min, y_max]
Realy_max1Maximum value of the transformed range [y_min, y_max]
Structural Parameters
Integernin (from MIMO_nin)2Number of input and output signals
BooleanenterInputRangefalse= true, if instead of using {min(u),max(u)} the range {u_min, u_max} is to be explicitly given

Connectors

TypeNameDefaultDescription
Connectors.RealMultiInput[nin]u (from MIMO_nin)Input

Components

TypeNameDefaultDescription
RealMultiOutputy (from MIMO_nin)