leftShiftData

fun leftShiftData(data: DoubleArray, tolerance: Double = defaultZeroTolerance): ShiftedData

Estimates the shift parameter and then shifts the data by the estimated quantity. Also returns the computed shift. Use destructuring if you want:

val (shift, shiftedData) = shiftData(data)