当前位置:网站首页>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)
endPublisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/131981.html Link to the original text :https://javaforall.cn
边栏推荐
- SQL Server 提取字符串中的纯数字
- 软工UML画图
- 利用日志服务器输出各种apache的日志的TOPN
- CentOS - enable / disable Oracle
- Markdown笔记简明教程
- Understanding polymorphism
- Digital currency: far-reaching innovation
- 阿里kube-eventer mysql sink简单使用记录
- Upgrade Kube with unknown flag: --network plugin
- Et la dégradation du modèle de génération de texte? Simctg vous donne la réponse
猜你喜欢
随机推荐
ssh-server配置文件参数PermitRootLogin介绍
uniapp-富文本编辑器
docker安装mysql
MySQL高级篇3
修改已经上线的小程序名称
【数字IC应届生职业规划】Chap.1 IC行业产业链概述及代表企业大厂汇总
SqlServer 获取字符串中数字,中文及字符部分数据
Use the log server to output the topn of various Apache logs
sqlserver 字符串类型转换成小数或者整数类型
ArcGIS construction and release of simple road network data service and rest call test
1.微信小程序页面跳转方法总结;2. navigateTo堆栈到十层不跳转问题
Why have the intelligent investment advisory products collectively taken off the shelves of banks become "chicken ribs"?
防范未授权访问攻击的十项安全措施
加密与解密以及OpenSSL的应用
有趣网站汇总
k个一组反转链表
毕业设计
uniapp怎么上传二进制图片
MySQL简介、详细安装步骤及使用 | 黑马程序员
[original] unable to use the code dialog height and width to solve the screen problem









