当前位置:网站首页>Coefficient of variation method matlab code [easy to understand]
Coefficient of variation method matlab code [easy to understand]
2022-06-30 21:13:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
function [ w,ave,score] = byxsf( A )
[m,n]=size(A);%m: Number of objects ,n: Number of indicators
v=zeros(1,n);
w=zeros(1,n);
for i=1:n
v(i)=std(A(:,i))/mean(A(:,i));
end
for i=1:n
w(i)=v(i)/sum(v);
end
disp(' The weight of :')
w
score=w(1)*A(:,1)+w(2)*A(:,2);% This part should be modified according to the actual situation
disp(' Average score :')
ave=mean(score)
end
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/131981.html Link to the original text :https://javaforall.cn
边栏推荐
猜你喜欢
MFC界面库BCGControlBar v33.0 - 桌面警报窗口、网格控件升级等
【数字IC应届生职业规划】Chap.1 IC行业产业链概述及代表企业大厂汇总
Lumiprobe copper free click chemical solution
银行集体下架的智能投顾产品,为何成了“鸡肋”?
MySQL简介、详细安装步骤及使用 | 黑马程序员
ICML2022 | 序列决策的效用理论
On the charm of code language
修改已经上线的小程序名称
Lumiprobe biotin phosphimide (hydroxyproline) instructions
ArcMap|用字段计算器对不同类别的id赋值
随机推荐
凤凰架构——架构师的视角
Learning summary
开源实习经验分享:openEuler软件包加固测试
Peking University ACM problems 1002:487-3279
SQL Server 提取字符串中的纯数字
Study on lumiprobe modified triphosphate biotin-11-utp
【等级测评师】等级测评师怎么报名?多少分及格?
报错:Internal error XFS_WANT_CORRUPTED_GOTO at line 1635 of file fs/xfs/libxfs/xfs_alloc.c.
B_QuRT_User_Guide(31)
CentOS - enable / disable Oracle
大学生研究生毕业找工作,该选择哪个方向?
coredns 修改upstream
利用日志服务器输出各种apache的日志的TOPN
Go build server Foundation
B_QuRT_User_Guide(32)
uniapp-第三方网络请求
Binary search tree (1) - concept and C language implementation
翻转链表II[翻转链表3种方式+dummyHead/头插法/尾插法]
docker安装mysql
Icml2022 | utility theory of sequential decision making