diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2006-10-10 23:17:54 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2006-10-10 23:17:54 +0000 |
commit | 7147b21ea8483ce6ce2ed3474e23136bb1043913 (patch) | |
tree | 45e3e02304f59e710784342888b788807e8bf9ad /numpy/lib/function_base.py | |
parent | f52ca5b51b089962f3870107b2a6b8ccdcae2286 (diff) | |
download | numpy-7147b21ea8483ce6ce2ed3474e23136bb1043913.tar.gz |
Fidget with average/mean docstrings.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index d7c4311af..d7eaa75e5 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -234,7 +234,7 @@ def average(a, axis=None, weights=None, returned=False): average over all dimensions of the array. Equivalent to a.mean(axis) and to - a.sum(axis) * 1.0 / size(a, axis) + a.sum(axis) / size(a, axis) If weights are given, result is: sum(a * weights,axis) / sum(weights,axis), |