[Scipy-tickets] [SciPy] #1653: scoreatprecentile return wrong values when used on array with NaNs

SciPy Trac scipy-tickets@scipy....
Wed May 2 15:07:22 CDT 2012


#1653: scoreatprecentile return wrong values when used on array with NaNs
-------------------------+--------------------------------------------------
 Reporter:  imrisofer    |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.10.0     
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by imrisofer):

 Hi and thank you for your quick response.
 I will check the masked array. I believe it will solve my problem for now.

 I think that in many cases users don't even know that they had NaNs in
 their array, and they will not realize they got wrong result (I know I
 didn't).
 my personal belief is that a function which receive an input that includes
 NaNs, should either remove the NaNs from the array, raise an exception,
 return a NaN, or behave in some predictable manner. I'm not sure
 scoreatprecentile is doing any of these, but this is my own personal
 belief.

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


More information about the Scipy-tickets mailing list