Rescale

Rescales input 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 input u will be rescaled to run from y_min to y_max over the range u_min to u_max to obtain the output y.

Implementation


y = Functions.rescale( x, {u_min,u_max}, {y_min, y_max});

See also  

Functions.rescale

Parameters (4)

u_min

Value:

Type: Real

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

u_max

Value:

Type: Real

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

y_min

Value: 0

Type: Real

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

y_max

Value: 1

Type: Real

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

Connectors (2)

y

Type: RealOutput

Description: Output signal

u

Type: RealInput

Description: Input