minor just in case patch

This commit is contained in:
Miroslav Stampar 2011-05-24 15:07:37 +00:00
parent 0072c3af8e
commit 69eb173eca

View File

@ -1592,6 +1592,7 @@ def stdev(values):
avg = average(values) avg = average(values)
for value in values: for value in values:
value = value or 0
summa += pow(value - avg, 2) summa += pow(value - avg, 2)
retVal = sqrt(summa/(len(values) - 1)) retVal = sqrt(summa/(len(values) - 1))