mpspline_rmse1 function

calculate RMSE