Would be nice to have a generic transform for the nth difference of a time series. Something like;
b = Difference(n, a) where b[i] = a[i+n] - a[i] where a is the vector we want the differences for, and n is the number of steps we want to take the difference over.