Merges generateFittedLine() with generateResiduals() to only have to loop over m_X once.
generateFittedLine()
generateResiduals()
m_X