Rescale

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

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 (6)

nin

Value: 2

Type: Integer

Description: Number of input and output signals

u_min

Value: -inf

Type: Real

Description: Minimum value of the original range [u_min, u_max]

u_max

Value: inf

Type: Real

Description: Maximum value of the original range [u_min, u_max]

y_min

Value: 0

Type: Real

Description: Minimum value of the transformed range [y_min, y_max]

y_max

Value: 1

Type: Real

Description: Maximum value of the transformed range [y_min, y_max]

enterInputRange

Value: false

Type: Boolean

Description: = true, if instead of using {min(u),max(u)} the range {u_min, u_max} is to be explicitly given

Connectors (2)

u

Type: RealMultiInput[nin]

Description: Input

y

Type: RealMultiOutput[nin]

Description: Output signal