mean ans std dev of an array?

SpreadTooThin bjobrien62 at
Mon Oct 23 23:49:15 CEST 2006

import array
a = array.array('f', [1,2,3])

print a.mean()
print a.std_dev()

Is there a way to calculate the mean and standard deviation on array

Do I need to import it into a Numeric Array to do this?

More information about the Python-list mailing list