frac32 in
frac32 out
frac32.s.map inMin
frac32.s.map inMax
frac32.s.map outMin
frac32.s.map outMax
float32_t width1 = param_inMax - param_inMin;
float32_t width2 = param_outMax - param_outMin;
float32_t ratio = width2 / width1;
int32_t in = inlet_in > param_inMax ? param_inMax : inlet_in;
in = in < param_inMin ? param_inMin : in;
outlet_out = (in - param_inMin) * ratio + param_outMin;