This question already has an answer here:

Can anyone provide citations for the following formula: x=(a-b)((x-min⁡(x))/(max⁡(x)-min⁡(x))+a

I have tried this formula and I got good results

marked as duplicate by whuber Jan 29 at 19:11

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.