From f52ca5b51b089962f3870107b2a6b8ccdcae2286 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Tue, 10 Oct 2006 23:15:58 +0000 Subject: Simplify mean and average docstrings. --- numpy/add_newdocs.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'numpy/add_newdocs.py') diff --git a/numpy/add_newdocs.py b/numpy/add_newdocs.py index 482de23f1..a7e7138af 100644 --- a/numpy/add_newdocs.py +++ b/numpy/add_newdocs.py @@ -826,11 +826,10 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('mean', """a.mean(axis=None, dtype=None) Average the array over the given axis. If the axis is None, - average over all dimensions of the array. If an integer axis - is given, this equals: - a.sum(axis, dtype) * 1.0 / len(a). - If axis is None, this equals: - a.sum(axis, dtype) * 1.0 / product(a.shape,axis=0) + average over all dimensions of the array. Equivalent to + + a.sum(axis, dtype) * 1.0 / size(a, axis). + The optional dtype argument is the data type for intermediate calculations in the sum.; -- cgit v1.2.1