From f1dee72d09b7357fbe1977005a4a3a719ade7d33 Mon Sep 17 00:00:00 2001 From: wirawan Date: Tue, 5 Apr 2011 19:20:01 +0000 Subject: [PATCH] * Reset fitting debug level to 0. --- math/fitting.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/math/fitting.py b/math/fitting.py index 4802b56..a746913 100644 --- a/math/fitting.py +++ b/math/fitting.py @@ -1,4 +1,4 @@ -# $Id: fitting.py,v 1.3 2010-11-05 02:28:20 wirawan Exp $ +# $Id: fitting.py,v 1.4 2011-04-05 19:20:01 wirawan Exp $ # # wpylib.math.fitting module # Created: 20100120 @@ -121,7 +121,7 @@ class fit_result(dict): pass def fit_func(Funct, Data=None, Guess=None, x=None, y=None, - debug=10, + debug=0, outfmt=1, method='leastsq', opts={}): """ @@ -192,6 +192,7 @@ def fit_func(Funct, Data=None, Guess=None, x=None, y=None, print Guess if method == 'leastsq': + # modified Levenberg-Marquardt algorithm rslt = leastsq(fun_err, x0=Guess, # initial coefficient guess args=(x,y), # data onto which the function is fitted