bugfix in Transformation.Differential
This commit is contained in:
parent
9ef5fa6cdc
commit
992e09b2a7
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user