fit(self,
ftol=None,
xtol=None,
maxiter=None,
maxfun=None,
restart=0,
scale=0.1)
| source code
|
Find the minimum of the function.
Halt when the function is flat to within ftol, or itmax iterations
have been exceeded.
If restart>0, restart the fit that many times basing each new
fit off the best value from the last fit. The new simplex is
of size scale in [0,1]. Use restart=-1 to run the fit until it
stops improving.
Returns [P, fval, iteration, fcalls]:
P: the fit parameter vector
fval: the value of the function for the best fit value.
iterations: the number of iterations.
fcalls: the number of function calls.
|