[Scipy-tickets] [SciPy] #1814: TypeError for gamma.pdf

SciPy Trac scipy-tickets@scipy....
Mon Jan 14 20:29:43 CST 2013


#1814: TypeError for gamma.pdf
-----------------------------+----------------------------------------------
 Reporter:  chrisfonnesbeck  |       Owner:  rgommers   
     Type:  defect           |      Status:  new        
 Priority:  normal           |   Milestone:  Unscheduled
Component:  scipy.stats      |     Version:  devel      
 Keywords:                   |  
-----------------------------+----------------------------------------------
Changes (by josefpktd):

  * owner:  somebody => rgommers
  * component:  Other => scipy.stats


Comment:

 If the distribution is frozen, then the methods don't take any
 distribution parameters anymore.
 Either all parameters need to be specified in the call method (creating a
 frozen distribution), or used as arguments to the method.

 {{{
 >>> rv = stats.gamma(3., loc = 0., scale = 2.)
 >>> x = np.linspace(0,5,10)
 >>> rv.pdf(x)
 array([ 0.        ,  0.0146116 ,  0.0442711 ,  0.07545108,  0.10160277,
         0.12025087,  0.13116361,  0.13522892,  0.13378768,  0.12825781])
 >>> stats.gamma.pdf(x, 3., loc = 0., scale = 2.)
 array([ 0.        ,  0.0146116 ,  0.0442711 ,  0.07545108,  0.10160277,
         0.12025087,  0.13116361,  0.13522892,  0.13378768,  0.12825781])
 }}}

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


More information about the Scipy-tickets mailing list