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/src/arraymethods.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'numpy/core/src/arraymethods.c') diff --git a/numpy/core/src/arraymethods.c b/numpy/core/src/arraymethods.c index 757df2ef5..c01d3db4b 100644 --- a/numpy/core/src/arraymethods.c +++ b/numpy/core/src/arraymethods.c @@ -1385,7 +1385,13 @@ array_all(PyArrayObject *self, PyObject *args, PyObject *kwds) return PyArray_All(self, axis); } -static char doc_stddev[] = "a.std(axis=None, dtype=None)"; +static char doc_stddev[] = "a.std(axis=None, dtype=None)\n" +"Return the standard deviation, a measure of the spread of a distribution.\n" +"\n" +"The standard deviation is the square root of the average of the squared\n" +"deviations from the mean, i.e. std = sqrt(mean((x - x.mean())**2)).\n" +"\n" +"For multidimensional arrays, std is computed by default along the first axis.\n"; static PyObject * array_stddev(PyArrayObject *self, PyObject *args, PyObject *kwds) -- cgit v1.2.1