Parameter Fitting: given a model function f(x,p), this program finds the minimizer of F(p) = norm(d,n), where d = error vector Usage: Least squares [default] fits(@(x,p)f(x,p),xd,yd,p0) Minimum n-norm with relative (m=1) or non-relative error (m=0) fits(@(x,p)f(x,p),xd,yd,p0,n,m)
↧