"SpreadTooThin" <[EMAIL PROTECTED]> writes:
> print a.mean()
> print a.std_dev()
> 
> Is there a way to calculate the mean and standard deviation on array data?

Well, you could use numpy or whatever.  If you want to calculate directly,
you could do something like (untested):

n = len(a)
mean = sum(a) / n
sd = sqrt(sum((x-mean)**2 for x in a) / n)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to