What exactly is a StartPoint for a Curve Fitting Tool, its significance and how it works?

조회 수: 229 (최근 30일)
I have searched this many times, and in many different ways, but couldn't get a comprehensive explanation on WHAT IS THE FUNCTION OF A STARTPOINT IN CURVE FITTING TOOL, AND HOW DOES IT WORK?
I also want to know about the format of StartPoint and the significance of the parameters in the [] brackets in (fit(x, y, 'StartPoint', []))
I would appreciate anyone who could take the time to explain this in detail. Please help! Thank you!

채택된 답변

TADA
TADA 2019년 8월 19일
편집: TADA 2019년 8월 19일
curve fitting works by trying to find the parameters of your model, lets say you are trying to fit a gaussian to a single peak curve:
then your model has three parameters a for amplitude, mu for average and sigma for standard deviation
least squares fitting works by iteratively guessing those parameters then improving the guess each iteration according to how well it fits the data, that is how large the margin from the data is in each point of the curve.
start point is the initial guess, it can help by narrowing down to something close to the data.
So now lets go back to the gaussian model,
fit(x, y, 'gauss1', 'StartPoint', [1, 2, 0.5]);
Now, i'm telling matlab to start from an amplitude of 1, average 2 and standard deviation 0.5
If you don't use start point matlab will use something random
  댓글 수: 3

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Alex Sha
Alex Sha 2019년 8월 26일
Curve fitting problems are actually optimization problems. The optimization algorithms used in curve fitting function (i.e. nlinfit,lsqcurvefit) of Matlab are all local optimization algorithms, thus depending haveily on the guess of initial start values of each parameter, if global algorithms were adopded, theoretically, the guessing of start values are no long needed. Baron, LingoGlobal, 1stOpt...can achieve such goal.

카테고리

Help CenterFile Exchange에서 Linear and Nonlinear Regression에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by