当前位置:网站首页>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
边栏推荐
猜你喜欢

Web APIs 综合案例-Tab栏切换 丨黑马程序员

在线教育项目用户登录和注册

时空数据挖掘:综述

个人开发的渗透测试工具Satania

文本生成模型退化怎麼辦?SimCTG 告訴你答案

MySQL introduction, detailed installation steps and usage | dark horse programmer

Lumiprobe protein quantitation - qudye Protein Quantitation Kit

Introduction of 3D Max fine model obj model into ArcGIS pro (II) key points supplement

Go语学习笔记 - gorm使用 - 数据库配置、表新增 | Web框架Gin(七)

Apply for vector bus protocol color picture wallpaper hanging picture, very good!
随机推荐
vncserver: Failed command ‘/etc/X11/Xvnc-session‘: 256!
Understanding polymorphism
遇到“word在试图打开文件时遇到错误”怎么办?
ICML2022 | 序列决策的效用理论
Lumiprobe protein quantitation - qudye Protein Quantitation Kit
CentOS - enable / disable Oracle
uniapp-生命周期/路由跳转
The 16th Heilongjiang Provincial Collegiate Programming Contest
毕业五年,想当初若没有入行测试,我是否还会如这般焦虑
Analysis and proposal on the "sour Fox" vulnerability attack weapon platform of the US National Security Agency
How to run jenkins build, in multiple servers with ssh-key
. NETCORE redis geo type
侧睡哈哈哈哈
开发技术-使用easyexcel导入文件(简单示例)
开源实习经验分享:openEuler软件包加固测试
Vite2兼容低版本chrome(如搜狗80),通过polyfills处理部分需求高版本的语法
Testing principle and precautions of biovendor rage ELISA Kit
ArcGIS construction and release of simple road network data service and rest call test
毕业设计
文本生成模型退化怎麼辦?SimCTG 告訴你答案