Takes a doublearray Variable iArray and scales it with cFactor and shifts it with cOffset (linear transformation). The output is stored in the variable Array.
\[ Array_k = cFactor \cdot iArray_k + cOffset \]
It is also possible, to scale FST-styled interpolation tables, i. e. double arrays of size 2n, that store alternating x and y values.
If cOnlyY is true, only the entries, representing y values are scaled (2nd, 4th, 6th ,...).
If cOnlyX is true, only the entries, representing x values are scaled (1st, 3rd, 5th, ...).
If both are true, then nothing is scaled. By default, both are set to false.
Content Type | Name | Description | Data Type | Unit | Min Value | Max Value | Default Value |
---|---|---|---|---|---|---|---|
constant | cFactor | factor the value is scaled with | DOUBLE | 1 | - | - | 1.0 |
constant | cOffset | offset that is added to the (scaled) value | DOUBLE | 1 | - | - | 0.0 |
constant | cOnlyX | if true, only 1st, 3rd, 5th, ... entries are transformed (for FST interpolation tables x values) | BOOLEAN | 1 | - | - | false |
constant | cOnlyY | if true, only 2nd, 4th, 6th, ... entries are transformed (for FST interpolation tables y values) | BOOLEAN | 1 | - | - | false |
input | iArray | input array | DOUBLEARRAY | 1 | - | - | - |
Array | transformed output array | DOUBLEARRAY | 1 | null |