What is the difference between line shift and initial offset?

In regards to scan offset compensation, the documentation talks about entering the half value to compensate for the offset, but it doesn’t (that I saw) explain when to use Line Shift and/or Initial Offset. How are these two values applied?