From d5a13c5e4d881a205bef6ce64cb2222aef98d43c Mon Sep 17 00:00:00 2001 From: cookedm Date: Tue, 18 Jul 2006 21:10:39 +0000 Subject: add some more docstrings --- numpy/core/fromnumeric.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'numpy/core/fromnumeric.py') diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index bfd8a1e0d..c3b5d031f 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -468,9 +468,17 @@ def mean(a, axis=0, dtype=None): mean = a.mean except AttributeError: return _wrapit(a, 'mean', axis, dtype) - return mean(axis, dtype) + return mean(axis, dtype) def std(a, axis=0, dtype=None): + """std(sample, axis=0, dtype=None) + Return the standard deviation, a measure of the spread of a distribution. + + The standard deviation is the square root of the average of the squared + deviations from the mean, i.e. std = sqrt(mean((x - x.mean())**2)). + + For multidimensional arrays, std is computed by default along the first axis. + """ try: std = a.std except AttributeError: -- cgit v1.2.1