blockRescale

Rescales input to run from y_min to y_max over the range u_min to u_max

Extends from Interfaces.PartialConverters.SISO (Converter with single input and single output).

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

TypeNameDefaultDescription
Realu_minMinimum value for the original range [u_min, u_max]
Realu_maxMaximum value for the original range [u_min, u_max]
Realy_min0Minimum value for the transformed range [y_min, y_max]
Realy_max1Maximum value for the transformed range [y_min, y_max]

Connectors

TypeNameDefaultDescription
Connectors.RealInputu (from SISO)Input

Components

TypeNameDefaultDescription
RealOutputy (from SO)