RescaleRescales input to run from y_min to y_max over the range u_min to u_max |
|
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.
y = Functions.rescale( x, {u_min,u_max}, {y_min, y_max});
| 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] |
| y |
Type: RealOutput Description: Output signal |
|
|---|---|---|
| u |
Type: RealInput Description: Input |