lag

fun lag(x: DoubleArray, k: Int = 1): DoubleArray
inline fun <T> lag(x: Array<T>, k: Int = 1): Array<T>

Returns a new array of size (x.size -k) that is lagged by k elements yi = xi+k for i=0,1,...