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
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | u_min | Minimum value for the original range [u_min, u_max] | |
| Real | u_max | Maximum value for the original range [u_min, u_max] | |
| Real | y_min | 0 | Minimum value for the transformed range [y_min, y_max] |
| Real | y_max | 1 | Maximum value for the transformed range [y_min, y_max] |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealInput | u (from SISO) | Input |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealOutput | y (from SO) |