Borrar filtros
Borrar filtros

RMSE

6 visualizaciones (últimos 30 días)
john
john el 5 de Abr. de 2011
Comentada: Walter Roberson el 14 de Abr. de 2022
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

Respuesta aceptada

Jiro Doke
Jiro Doke el 5 de Abr. de 2011
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 comentarios
Abilene Denunzio
Abilene Denunzio el 14 de Abr. de 2022
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 el 14 de Abr. de 2022
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.

Iniciar sesión para comentar.

Más respuestas (1)

Senrima margasandy
Senrima margasandy el 5 de Mzo. de 2015
Download "New RMSE By Senrima"

Categorías

Más información sobre Mathematics and Optimization en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by