rex.utilities.utilities.rex_unscale
- rex_unscale(data, scale_factor=1, adder=0)[source]
Unscale rex-formatted data
Rex-style unscaling divides by the
scale_factor
ifadder==0
; otherwise thescale_factor
is multiplied before adding theadder
.- Parameters:
data (array-like) – Input data to be unscaled.
scale_factor (int | float, optional) – Data scaling factor. By default,
1
.adder (int | float, optional) – Data adder. By default,
0
.
- Returns:
array-like – Unscaled input data.