当前位置:网站首页>变异系数法matlab代码[通俗易懂]
变异系数法matlab代码[通俗易懂]
2022-06-30 20:40:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
function [ w,ave,score] = byxsf( A )
[m,n]=size(A);%m:对象数,n:指标数
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('权重为:')
w
score=w(1)*A(:,1)+w(2)*A(:,2);%这部分要根据实际情况修改
disp('得分平均值:')
ave=mean(score)
end发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/131981.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢

Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing

开发技术-使用easyexcel导入文件(简单示例)

Lumiprobe cell biology - dia, instructions for lipophilic tracer

谈谈内联函数

uniapp怎么上传二进制图片

注册设备监理师难考吗,和监理工程师有什么关系?

为什么vscode用久了电脑速度变慢?

Lumiprobe生物素亚磷酰胺(羟脯氨酸)说明书

Lvalue reference and lvalue reference

软工UML画图
随机推荐
哈夫曼樹(一)基本概念與C語言實現
Huffman tree (I) basic concept and C language implementation
Web APIs 综合案例-Tab栏切换 丨黑马程序员
Evolution of screen display technology
阿里kube-eventer mysql sink简单使用记录
浅谈代码语言的魅力
北京大学ACM Problems 1000:A+B Problem
All the important spark summit features were released here last night (with ultra clear video attached)
B_QuRT_User_Guide(35)
PHP获取Opcode及C源码
Game 81 biweekly
我想知道股票开户要认识谁?另外,手机开户安全么?
Huffman Tree (1) Basic Concept and C - language Implementation
Is it safe to open an account for online stock trading!?
注册设备监理师难考吗,和监理工程师有什么关系?
Implementation principle of PostgreSQL heap table storage engine
B_QuRT_User_Guide(33)
Qt和其它GUI库的对比
On inline function
19.04 分配器