[Scipy-tickets] [SciPy] #1200: consistency of std interface

SciPy Trac scipy-tickets@scipy....
Sun Nov 21 06:02:07 CST 2010


#1200: consistency of std interface
----------------------------------------+-----------------------------------
 Reporter:  amcmorl                     |       Owner:  somebody   
     Type:  defect                      |      Status:  needs_work 
 Priority:  normal                      |   Milestone:  Unscheduled
Component:  scipy.stats                 |     Version:  devel      
 Keywords:  signature, ddof, bias, std  |  
----------------------------------------+-----------------------------------
Changes (by rgommers):

  * status:  needs_review => needs_work


Comment:

 First on the signatures (of nanstd, but other nan functions as well): this
 can not be done in a backwards-compatible way, which is a pain. Both
 {{{axis=0}}} vs {{{axis=None}}} and {{{bias=False}}} vs {{{ddof=0}}} will
 change the default behavior. So we need to decide whether to clean this up
 or not, and if so, how. I attach a patch for the bias kw, this would be
 one way to do it.

 On Bruce's patch: a nanvar function would be a good addition. But the nan*
 funcs do not handle masked arrays, neither should this one I think. That's
 what mstats is for. Furthermore the axis handling works only for 2-D it
 seems, look at other nan* funcs to see how it's done there (specifically
 {{{_chk_asarray}}}). The print statements at the end should be converted
 to tests.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1200#comment:3>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list