The size of the linear phase in the log transformed data can very so a one-size-fits-all approach is always appropriate. we can add in an "auto" argument to allow the function to find the optimum window size