I want to calculate the differences between of the Nth value of the vector X and the N-1th value of the vector Y. All I know is the function delta, but it can only work within one vector. Does anyone know a better method? Thanks in advance.
Asked
Active
Viewed 22 times
1
Smalllpotatoo1
- 173
- 5
1 Answers
1
deltas(X) is equivalent to X - prev(X). So you can do X - prev(Y) for your requirement.
Hanwei Tang
- 413
- 3
- 10