In a AI course, we have to normalize a set of numerical inputs such that the highest input becomes $1$ and the lowest becomes $0$. The set is as follows:
$ 1\\3\\5\\2 $
So the first entry should become $0$ and the third one becomes $1$. Now how do I calculate the second and last one? I can't just divide by 5 because dividing one by five would give $0.2$ and not $0$.
You just need the following formula: $$\frac{x-min}{max-min}$$ Which $min$ and $max$ are the minimum and maximum value in data which is $1$ and $5$ here, respectively.