[Scipy-tickets] [SciPy] #1461: stats distributions moment returns float or array

SciPy Trac scipy-tickets@scipy....
Thu Jun 16 09:02:19 CDT 2011


#1461: stats distributions moment returns float or array
-----------------------+----------------------------------------------------
 Reporter:  josefpktd  |       Owner:  somebody   
     Type:  defect     |      Status:  new        
 Priority:  normal     |   Milestone:  Unscheduled
Component:  Other      |     Version:  0.9.0      
 Keywords:             |  
-----------------------+----------------------------------------------------
 looks like an inconsistency in the return type

 {{{
 >>> [stats.gamma.moment(k, 0.5)  for k in range(10)]
 [1.0, 0.5, 0.75, 1.875, 6.5625, array(29.531250006388571),
 array(162.42187520990962), array(1055.7421872465959),
 array(7918.0663746739556), array(67303.564628774897)]
 }}}

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


More information about the Scipy-tickets mailing list