Why are these two RMSE yield different results?

1 回表示 (過去 30 日間)
Raja Joko Musridho
Raja Joko Musridho 2018 年 4 月 8 日
コメント済み: Raja Joko Musridho 2018 年 4 月 11 日
LM_error= sqrt(mean(((trueLm-estLm).^2),2));
LM_error= sqrt(sum(((trueLm-estLm).^2),2)/length(data));

回答 (1 件)

Image Analyst
Image Analyst 2018 年 4 月 8 日
編集済み: Image Analyst 2018 年 4 月 8 日
Why should they be? The first method does not even use the array called data at all so it doesn't surprise me that they are different.
And why not simply use immse()?
  5 件のコメント
Image Analyst
Image Analyst 2018 年 4 月 10 日
Not necessarily, but sum(x)/length(x) IS the same as mean(x)?
Raja Joko Musridho
Raja Joko Musridho 2018 年 4 月 11 日
Thank you
But I am still wondering why the results I got are different to each other. The sum((trueLM-estLM).^2)/length(x)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeRobotics についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by