[Scipy-svn] r7033 - trunk/scipy/stats
scipy-svn at scipy.org
scipy-svn at scipy.org
Fri Jan 14 21:06:35 EST 2011
Author: josef
Date: 2011-01-14 20:06:35 -0600 (Fri, 14 Jan 2011)
New Revision: 7033
Modified:
trunk/scipy/stats/distributions.py
Log:
stats.distributions, add argcheck to moment method, fixes ticket:934
Modified: trunk/scipy/stats/distributions.py
===================================================================
--- trunk/scipy/stats/distributions.py 2011-01-15 01:23:55 UTC (rev 7032)
+++ trunk/scipy/stats/distributions.py 2011-01-15 02:06:35 UTC (rev 7033)
@@ -5464,6 +5464,8 @@
instance object for more information)
"""
+ if not self._argcheck(*args):
+ return nan
if (floor(n) != n):
raise ValueError("Moment must be an integer.")
if (n < 0): raise ValueError("Moment must be positive.")
More information about the Scipy-svn
mailing list