I need to normalize a list of values to fit in a probability distribution, i.e. between 0.0 and 1.0.
I understand how to normalize, but was curious if Pytho
if your list has negative numbers, this is how you would normalize it
a = range(-30,31,5) norm = [(float(i)-min(a))/(max(a)-min(a)) for i in a]