How do I calculate the error of a fitted curve?

조회 수: 11 (최근 30일)
Janna Hinchliff
Janna Hinchliff 2019년 1월 15일
댓글: Star Strider 2019년 1월 16일
Say I have some data points, which I do not have error bars for, and I fit a Gaussian (or possibly Lorentzian) curve to these data points. I want to find a parameter representing how accurate this fit is, with respect to the x coordinate, if I assume that each data point has no error. How could I go about doing this kind of fit in Matlab? I'm happy with some simple error parameter like the standard error of the data points with respect to the fit, but I'm not sure of the best Matlab function to use and whether Matlab has this information without doing extra calculations.

채택된 답변

Star Strider
Star Strider 2019년 1월 15일
See if the Statistics and Machine Learning Toolbox nlpredci (link) function will do what you want.
  댓글 수: 1
Star Strider
Star Strider 2019년 1월 16일
@Janna Hinchliff — I replied to your classmate’s Question on a similar topic, and to the Comment you posted to it.
If my Answer to either Question helped you solve your problem, please Accept my Answer here!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by