I am trying to rescale a set of numbers to a new scale with some specific requirements.
Imagine I have a set of numbers between 1-100
I want to be able to scale this set of numbers to a new scale between 80 - 120 where 80 is the min of the original set, 120 is the max of the original set and 100 is the mean.
To use a small example:
For the set [43,26,56,21,25,94]
On the new scale 21 would map to 80, 94 would map to 120, and 44.2 would map to 100.