[Scipy-svn] r3106 - trunk/Lib/sandbox/timeseries/lib

scipy-svn@scip... scipy-svn@scip...
Thu Jun 14 20:04:34 CDT 2007


Author: mattknox_ca
Date: 2007-06-14 20:00:10 -0500 (Thu, 14 Jun 2007)
New Revision: 3106

Modified:
   trunk/Lib/sandbox/timeseries/lib/moving_funcs.py
Log:
reversed params to expmave_sub . Behaviour of ufuncs created from frompyfunc seems to have changed at some point causing this to be reversed

Modified: trunk/Lib/sandbox/timeseries/lib/moving_funcs.py
===================================================================
--- trunk/Lib/sandbox/timeseries/lib/moving_funcs.py	2007-06-13 23:44:04 UTC (rev 3105)
+++ trunk/Lib/sandbox/timeseries/lib/moving_funcs.py	2007-06-15 01:00:10 UTC (rev 3106)
@@ -202,7 +202,7 @@
     #
     k = 2./float(span + 1)
     def expmave_sub(a, b):
-        return b + k * (a - b)
+        return a + k * (b - a)
     #
     data._data.flat = N.frompyfunc(expmave_sub, 2, 1).accumulate(_data)
     if ismasked:



More information about the Scipy-svn mailing list