Fitted output of LevenbergMarquardtOptimizer3 to output from c code