[SciPy-Dev] Difference between scipy.stats.gengamma and scipy.stats.distributions.gengamma

Travis Oliphant oliphant@enthought....
Wed Jun 2 15:21:32 CDT 2010


On Jun 2, 2010, at 12:26 AM, josef.pktd@gmail.com wrote:

> On Wed, Jun 2, 2010 at 1:09 AM, David Goldsmith <d.l.goldsmith@gmail.com> wrote:
>> Is there a difference between these two?  Same question for stats.lognorm
>> and stats.distributions.lognorm?  Thanks.
> 
> No, they are the same instance of the distribution
> 
> scipy.stats.__init__   has a from distributions import *  or something like this

In general, the original design concept in scipy name-spaces is that names should not be imported from their "leaf-node", but from somewhere higher up.   The fact that the distribution objects are in scipy.stats.distributions should not be relied upon. 

This is the same philosophy in NumPy (i.e. you shouldn't import things from numpy.core or numpy.lib directly). 

-Travis

> 
> Josef
> 
>> 
>> DG
>> 
>> --
>> Mathematician: noun, someone who disavows certainty when their uncertainty
>> set is non-empty, even if that set has measure zero.
>> 
>> Hope: noun, that delusive spirit which escaped Pandora's jar and, with her
>> lies, prevents mankind from committing a general suicide.  (As interpreted
>> by Robert Graves)
>> 
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev@scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-dev
>> 
>> 
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev

---
Travis Oliphant
Enthought, Inc.
oliphant@enthought.com
1-512-536-1057
http://www.enthought.com





More information about the SciPy-Dev mailing list