add_curve_fit function

Add curve fit