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

SciPy Trac scipy-tickets@scipy....
Wed Jun 16 11:24:51 CDT 2010

#1200: consistency of std interface
 Reporter:  amcmorl                     |       Owner:  somebody   
     Type:  defect                      |      Status:  new        
 Priority:  normal                      |   Milestone:  Unscheduled
Component:  scipy.stats                 |     Version:  devel      
 Keywords:  signature, ddof, bias, std  |  

Comment(by bsouthey):

 Just a few explanations.

 I created two new functions, one for the variance and one for the standard
 deviation (since it the square root of the variance).

 The dtype argument is for the internal calculations and is only relevant
 when the dtype argument is float128. Numpy automatically converts the
 input to float64 so dtype is only used when for dtypes with higher
 precision (currently float128). HoweverSo I cheated by only converting the
 input to float128 when the dtype was float128.

 I do not know how to implement the out argument although it can be
 achieved by converting the input to a masked array.

 I also added a check for masked arrays so that if the input is a masked
 array so that the appropriate masked array function is used.

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

More information about the Scipy-tickets mailing list