blockRescale
Rescales the components of input vector u to run from y_min to y_max over the range u_min to u_max
Extends from Interfaces.PartialConverters.MIMO_nin (Converter with multiple inputs and outputs of dimensions nin).
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
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Real | u_min | -inf | Minimum value of the original range [u_min, u_max] |
| Real | u_max | inf | Maximum value of the original range [u_min, u_max] |
| Real | y_min | 0 | Minimum value of the transformed range [y_min, y_max] |
| Real | y_max | 1 | Maximum value of the transformed range [y_min, y_max] |
| Structural Parameters | |||
| Integer | nin (from MIMO_nin) | 2 | Number of input and output signals |
| Boolean | enterInputRange | false | = true, if instead of using {min(u),max(u)} the range {u_min, u_max} is to be explicitly given |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Connectors.RealMultiInput[nin] | u (from MIMO_nin) | Input |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| RealMultiOutput | y (from MIMO_nin) |