Work with least squares approximation and LR splines