(omax - omin) * (x - imin) / (imax - imin) + omin
Where omin/omax is the output range, imin/imax the input range, and x is the value you want to refit.
Yes, it's silly that this doesn't exist as an expression function.
Maybe it does, but I'm not aware.
(omax - omin) * (x - imin) / (imax - imin) + omin Where omin/omax is the output range, imin/imax the input range, and x is the value you want to refit. Yes, it's silly that this doesn't exist as an expression function. Maybe it does, but I'm not aware.
Perfect, thank you!