On Sat, Apr 21, 2012 at 5:31 PM, nicky van foreest <vanforeest@gmail.com> wrote:
In [11]: from scipy.stats import uniform
In [12]: U = uniform(loc = 3, scale = 5)
In [13]: U.mean() Out[13]: 5.5
In [14]: U.moment(1) Out[14]: 0.5
Might this problem be due to the fact that my ubuntu machine does not support the latest version of scipy.stats?
I'm stil on 0.9 and there is no loc, scale option
import scipy scipy.__version__ '0.9.0' stats.uniform.moment(loc = 3, scale = 5) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: moment() got an unexpected keyword argument 'loc' U.moment(1) 0.5 stats.uniform.moment(1) 0.5
Obviously I'm not up to date in this. can you try the distribution directly instead of the frozen distribution? Josef
_______________________________________________ SciPy-Dev mailing list SciPy-Dev@scipy.org http://mail.scipy.org/mailman/listinfo/scipy-dev