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
try:
normed = [i/sum(raw) for i in raw] normed [0.25, 0.5, 0.25]