The definition of fitting refers to the procedure of adjusting the parameters of a function that models discrete data points, with the goal of either interpolating or extrapolating the data. This process enhances the function's accuracy in describing or predicting data trends.