Why are these two RMSE yield different results?

조회 수: 2 (최근 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 CenterFile Exchange에서 Robotics에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by