[Solved] How to make number ranging from 5 to -5 instead range from 5 to 10? [closed]
From [-5, 5] to [5, 10]: output = (input + 7.5) * 0.5 From [5, 10] to [-5, 5]: output = (input – 7.5 ) * 2 From [5, 10] to [5, -5]: output = (input – 7.5 ) * -2 The idea is to first shift the average of input’s range to average of … Read more