[Scipy-tickets] [SciPy] #508: scoreatpercentile behaves strangely for rank > 1

SciPy scipy-tickets@scipy....
Thu Sep 27 07:18:58 CDT 2007


#508: scoreatpercentile behaves strangely for rank > 1
--------------------+-------------------------------------------------------
 Reporter:  cdavid  |       Owner:  cdavid
     Type:  defect  |      Status:  new   
 Priority:  normal  |   Milestone:  0.7   
Component:  Other   |     Version:        
 Severity:  normal  |    Keywords:        
--------------------+-------------------------------------------------------
 This one took me some time to track down :)

 {{{
 #!python
 import numpy as N
 from scipy.stats import scoreatpercentile

 a = N.linspace(-1, 1, 50)
 a[0] = 2

 scoreatpercentile(a, 1) # -0.93..., ok
 scoreatpercentile(a, 99) # 1.51, ok

 scoreatpercentile(a[:, N.newaxis], 1) # 0.55 ???
 scoreatpercentile(a[:, N.newaxis], 99) # 0.98
 }}}

 I guess there is something wrong in the interpolation.

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


More information about the Scipy-tickets mailing list