Calculating Mean Square Error

99 ビュー (過去 30 日間)
Maria
Maria 2014 年 4 月 19 日
コメント済み: Image Analyst 2017 年 2 月 28 日
What will be the code of the function for calculating Mean Square Error
  3 件のコメント
Christy Lentz
Christy Lentz 2017 年 2 月 27 日
What happens when the returned value is NaN? I'm using 2 arrays of observational measurements and then simulation measurements and trying to find the MSE, but upon using this algorithm I get a NaN back.
Image Analyst
Image Analyst 2017 年 2 月 28 日
What do you want to do when there's a nan. You know there is a 'omitnans' option to mean() don't you?

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

採用された回答

Image Analyst
Image Analyst 2014 年 4 月 20 日
OK so we know the desired signal, at least you could if you made up the equation for it. But what is the actual signal? Do you have that in some array, perhaps that you read in from some kind of position sensor or image analysis? To calculate MSE you need to have two signals - the desired/true signal, and your actual/test signal. Then just do
MSE = mean((desired - mean).^2);
  5 件のコメント
Maria
Maria 2014 年 4 月 21 日
Dear Mr Image Analyst many thanks to you , I will try it and feed you back . thanks
Image Analyst
Image Analyst 2014 年 5 月 9 日
Mick, not sure what your recent edit was, but if I helped you could you mark the answer as "Accepted"? Thanks.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHilbert and Walsh-Hadamard Transforms についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by