Say for example I have a list of n numbers. I would like to convert this into another list of n numbers which are all within a certain range, e.g. 0 and 1, but still maintain the relationship between the numbers in the original list. So the largest number in the first list would now be 1, the smallest 0, and all the numbers in between would have a value between 0 and 1 corresponding to their relative distance to those extremes.
So if the first list were some values from the function $y = x^2$ and I converted it into this new format and rendered a graph from that, the graph would still have the same shape, but it would be "compressed" to values between 0 and 1 only.
I thought it was called normalization but after Googling I suspect I was wrong. Is there a term for this? Can anyone point me to an algorithm to do this for any input list?
E.g. given the list {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5} I would want something like {0, 0.1, 0.2, 0.3, 0.4, ,0.5, 0.6, 0.7, 0.8, 0.9, 1}
Thanks!