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

Anand Patil anand.prabhakar.patil at gmail.com
Tue Oct 23 15:26:38 EDT 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://mail.scipy.org/pipermail/scipy-user/attachments/20071023/790bc0e9/attachment.html>


More information about the SciPy-User mailing list