필터 지우기
필터 지우기

RMSE

조회 수: 5 (최근 30일)
john
john 2011년 4월 5일
댓글: Walter Roberson 2022년 4월 14일
Hi,
Does anybody know if there is any command in matlab, to calculate the RMSE (Root Mean Square Error) in a curve fitting problem?
Thanks

채택된 답변

Jiro Doke
Jiro Doke 2011년 4월 5일
One way is to compute it yourself. You just need to compute the root of the mean of the squared errors (hence the name):
y = <true values>
yhat = <fitted values>
RMSE = sqrt(mean((y - yhat).^2));
  댓글 수: 2
Abilene Denunzio
Abilene Denunzio 2022년 4월 14일
When I try this code I get a parse error at the first "<" in each line saying it's an invalid use of operator. How do I fix this?
Walter Roberson
Walter Roberson 2022년 4월 14일
Comment out these two lines:
y = <true values>
yhat = <fitted values>
Now add lines that initialize y to the actual values to be fit against, and which initialize yhat to be projected or modeled or reconstructed values that you want to compare to the true values.

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

추가 답변 (1개)

Senrima margasandy
Senrima margasandy 2015년 3월 5일
Download "New RMSE By Senrima"

카테고리

Help CenterFile Exchange에서 Mathematics and Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by