[Scipy-tickets] [SciPy] #1131: Scipy Stats ppf for Lognormal fails on array-like 'loc' or 'scale'

SciPy Trac scipy-tickets@scipy....
Wed Mar 17 11:03:58 CDT 2010


#1131: Scipy Stats ppf for Lognormal fails on array-like 'loc' or 'scale'
---------------------------------------------------+------------------------
 Reporter:  catintp                                |       Owner:  somebody    
     Type:  defect                                 |      Status:  needs_review
 Priority:  normal                                 |   Milestone:  0.8.0       
Component:  scipy.stats                            |     Version:  0.7.0       
 Keywords:  ppf, parameters, loc, scale, mismatch  |  
---------------------------------------------------+------------------------

Comment(by catintp):

 Quote: "isf works (strangely, because it is defined similarly to ppf)"

 Just checked this yesterday. There's a subtle difference here.

 1. In isf(), output is created as valarray(shape(cond), value=self.b), so
 it is not affected by the shape of "scale" or "loc".

 2. In ppf(), the corresponding call is
     output = valarray(shape(cond), value=self.a*scale+loc)

 So the shape of "value" depends on objects passed in by the client.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1131#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