[SciPy-User] scipy.stats example code with numargs

Henry Harpending harpend@gmail....
Fri Jan 6 11:12:43 CST 2012


Examples of the use of distributions in scipy documentation start with with something like this:

>>> from scipy.stats import truncnorm
>>> numargs = truncnorm.numargs
>>> [ a, b ] = [0.9,] * numargs
>>> rv = truncnorm(a, b)

What does this do?  Why 0.9?  In this particular case it seems to make no sense: the standard normal truncated between 0.9 and 0.9.  Or am I way off base?

Thanks, Henry Harpending



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120106/2d604f7b/attachment.html 


More information about the SciPy-User mailing list