当前位置:网站首页>Grey correlation cases and codes
Grey correlation cases and codes
2022-07-01 04:21:00 【Sichuan rookie】
Case study

Find the degree of correlation between them , And size sort .
Code
Wrote notes , To view the , Changed the case , You just need to modify this part :
Because the reading is different , You always have to change the numbers .
clc;
close;
clear all;
x=xlsread('gray_data1.xlsx');
x=x(:,2:end)';% All columns ,2 To the last row
column_num=size(x,2);
index_num=size(x,1);
% 1、 Data averaging processing
x_mean=mean(x,2);
for i = 1:index_num
x(i,:) = x(i,:)/x_mean(i,1);
end
% 2、 Extract reference queue and comparison queue
ck=x(1,:)
cp=x(2:end,:)
cp_index_num=size(cp,1);
% The comparison queue is subtracted from the reference queue
for j = 1:cp_index_num
t(j,:)=cp(j,:)-ck;
end
% Find the maximum difference and the minimum difference
mmax=max(max(abs(t)))
mmin=min(min(abs(t)))
rho=0.5;
%3、 Find the correlation coefficient
ksi=((mmin+rho*mmax)./(abs(t)+rho*mmax))
%4、 Find the correlation degree
ksi_column_num=size(ksi,2);
r=sum(ksi,2)/ksi_column_num;
%5、 Relevance ranking , Get the results r3>r2>r1
[rs,rind]=sort(r,'descend')
Result analysis
This is the correlation size and sort ,3>2>1
边栏推荐
- 创新界,聚势行 | 2022人大金仓“百城巡展”火热开启
- 做网站数据采集,怎么选择合适的服务器呢?
- Ospfb notes - five messages [ultra detailed] [Hello message, DD message, LSR message, LSU message, lsack message]
- Hololens2 development environment building and deploying apps
- Jenkins自动清理构建历史
- Use of JMeter counters
- 互联网行业最佳产品开发流程 推荐!
- 多次跳槽后,月薪等于老同事的年薪
- LetCode 1829. Maximum XOR value per query
- 【发送邮件报错】535 Error:authentication failed
猜你喜欢

Volley parsing data shows networking failure

Programs and processes, process management, foreground and background processes

206. reverse linked list

It's settled! 2022 JD cloud summit of JD global technology Explorer conference see you in Beijing on July 13

采购数智化爆发在即,支出宝'3+2'体系助力企业打造核心竞争优势

"Target detection" + "visual understanding" realizes the understanding of the input image

Internet winter, how to spend three months to make a comeback

JS image path conversion Base64 format

【人话版】WEB3黑暗森林中的隐私博弈

Obtain detailed ideas for ABCDEF questions of 2022 American Games
随机推荐
NFT: utilisez EIP - 2981 pour commencer un voyage de redevances NFT
25.K个一组翻转链表
js 图片路径转换base64格式
不同性能测试工具的并发模式
Unity's 3D multi-point arrow navigation
创新界,聚势行 | 2022人大金仓“百城巡展”火热开启
How to choose the right server for website data collection?
[TA frost wolf \u may- hundred talents plan] 1.2.3 MVP matrix operation
CF1638E colorful operations
Procurement intelligence is about to break out, and Alipay'3+2'system helps enterprises build core competitive advantages
Unity之三维空间多点箭头导航
JD intelligent customer service Yanxi intention system construction and intention recognition technology introduction
Qt开发经验小技巧226-230
【LeetCode】100. Same tree
Libevent Library Learning
Programs and processes, process management, foreground and background processes
Learn Chapter 20 of vue3 (keep alive cache component)
One job hopping up 8K, three times in five years
京东智能客服言犀意图体系搭建和意图识别技术介绍
Concurrent mode of different performance testing tools