[SciPy-user] How to get parameters out of an rv object

Anand Patil anand.prabhakar.patil@gmail....
Tue Oct 23 14:26:38 CDT 2007


Hi all,

I'd like to wrap scipy.stats.rv objects in PyMC random variables. To do that
the class factory needs to inspect the rv objects and figure out what
parameters they're expecting. For instance, it would need to look at
stats.norm and figure out that it's expecting loc and scale.

I've tried just inspecting the pdf / pmf methods, but it hasn't work because
many of them seem to inherit the generic  method taking only x, *args,
**kwargs.

Thanks,
Anand
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071023/790bc0e9/attachment.html 


More information about the SciPy-user mailing list