bugfix in Transformation.Differential

This commit is contained in:
Petrônio Cândido 2018-06-28 13:47:34 -03:00
parent 9ef5fa6cdc
commit 992e09b2a7

View File

@ -64,7 +64,7 @@ class Differential(Transformation):
data = data.tolist()
n = len(data)
diff = [data[t - self.lag] - data[t] for t in np.arange(self.lag, n)]
diff = [data[t] - data[t - self.lag] for t in np.arange(self.lag, n)]
for t in np.arange(0, self.lag): diff.insert(0, 0)
return diff