calculating MSE and Mean in an array

1 回表示 (過去 30 日間)
negin tebyani
negin tebyani 2018 年 2 月 22 日
コメント済み: negin tebyani 2018 年 2 月 22 日
I am trying to calculate fairness index of some values that are in an array like:
loadofRRH = [L1,L2,L3,L4,L5,L6]
which can be calculated from:
fainessindex=MSE(L1,L2,L3,L4,L5,L6)/Mean(L1,L2,L3,L4,L5,L6)
as the article that I am reading says, this fainness index has to be between 0 and 1. but what I am getting is more than 1 for example it gives me 8!
I have written the code in matlab like:
MEAN=mean( nonzeros(loadofRRH) );
mainMSE=var(nonzeros(loadofRRH));
fairnessindex=mainMSE/MEAN;
is there some thing that I am doing wrong? can anyone help me with this?
  1 件のコメント
negin tebyani
negin tebyani 2018 年 2 月 22 日
calculating with matlab and array = [ 2 60 14 17 1 27] I get 475.7667
calculating it in here I get 396.47222 and doing it manually with the way that has been told here I get 594.7!
which one is correct?

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

回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by