[Scipy-tickets] [SciPy] #1527: stats.kruskal not working as advertised

SciPy Trac scipy-tickets@scipy....
Thu Sep 29 21:51:44 CDT 2011


#1527: stats.kruskal not working as advertised
-------------------------+--------------------------------------------------
 Reporter:  ckuster      |       Owner:  somebody   
     Type:  defect       |      Status:  new        
 Priority:  normal       |   Milestone:  Unscheduled
Component:  scipy.stats  |     Version:  0.9.0      
 Keywords:               |  
-------------------------+--------------------------------------------------

Comment(by josefpktd):

 ckuster,
 I think that would be good.

 a suggestion:
 use array conversion as in the first few lines of f_oneway.

 and replace the list-loop with `del` with slicing based on cumsum(n) or
 something like that
 {{{
     for i in range(len(args)):
         args[i] = ranked[0:n[i]]
         del ranked[0:n[i]]
 }}}

 with a large number of args arrays/lists, np.bincount might be faster

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


More information about the Scipy-tickets mailing list