mean ans std dev of an array?

SpreadTooThin bjobrien62 at gmail.com
Mon Oct 23 17:49:15 EDT 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
data?

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




More information about the Python-list mailing list