Inverse normalization function

13.6k Views Asked by At

As far as I know the the normalization function is capable of normalize values between 0 and 1:

$$\frac{X - \min}{\max - \min}.$$

With this the highest value will be mapped as $1$ and the lowest as $0$. My question is the following: is there a way to map those values in an opposite way? Briefly speaking I want to map the highest value to $0$ and the lowest to $1$.

Is there a function to do this?

1

There are 1 best solutions below

1
On BEST ANSWER

Just take 1 - (X - min) / (max - min), or

(max - X) / (max - min)