[Scipy-tickets] [SciPy] #1639: stats.rice.pdf(x, 0) returns nan

SciPy Trac scipy-tickets@scipy....
Wed Apr 4 15:54:15 CDT 2012


#1639: stats.rice.pdf(x, 0) returns nan
------------------------------+---------------------------------------------
 Reporter:  warren.weckesser  |       Owner:  somebody   
     Type:  defect            |      Status:  new        
 Priority:  normal            |   Milestone:  Unscheduled
Component:  scipy.stats       |     Version:  0.10.0     
 Keywords:                    |  
------------------------------+---------------------------------------------
 stats.rice.pdf(x, 0) incorrectly returns nan:
 {{{
 In [15]: stats.rice.pdf(1.0, 0.0)
 Out[15]: nan

 In [16]: stats.rice.pdf([0.0, 1.0, 2.0], 0.0)
 Out[16]: array([ nan,  nan,  nan])
 }}}
 But stats.rice._pdf works:
 {{{
 In [21]: x = array([0.0, 1.0, 2.0])

 In [22]: stats.rice._pdf(x, 0.0)
 Out[22]: array([ 0.        ,  0.60653066,  0.27067057])
 }}}
 This was pointed out on the scipy-user mailing list in the thread that
 starts here:
 http://mail.scipy.org/pipermail/scipy-user/2012-April/031991.html

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


More information about the Scipy-tickets mailing list