You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the returned keyword from average. This would clean up the code a bit and get rid of one more function with multiple return types. I don't see any use for the sum of the weights except for debugging average itself.
The text was updated successfully, but these errors were encountered:
In general I'm not a fan of functions with multiple return types, so I attached a patch. It doesn't cause any NumPy, SciPy, or matplotlib test failures (on my Linux machine, at least).
I couldn't find any existing references to this parameter (or the average function, for that matter) in the docs. I'll include doc changes in the patch if someone can point me in the right direction.
Original ticket http://projects.scipy.org/numpy/ticket/701 on 2008-03-16 by @charris, assigned to unknown.
Remove the returned keyword from average. This would clean up the code a bit and get rid of one more function with multiple return types. I don't see any use for the sum of the weights except for debugging average itself.
The text was updated successfully, but these errors were encountered: