当前位置:网站首页>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
边栏推荐
- 基于Unet的环路滤波
- Why can't you find the corresponding function by clicking go to definiton (super easy has a diagram)
- 【无标题】
- [today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
- One job hopping up 8K, three times in five years
- [send email with error] 535 error:authentication failed
- It's settled! 2022 JD cloud summit of JD global technology Explorer conference see you in Beijing on July 13
- Some small knowledge points
- [human version] Web3 privacy game in the dark forest
- 【TA-霜狼_may-《百人計劃》】1.2.1 向量基礎
猜你喜欢
Volley parsing data shows networking failure
25.k sets of flipped linked lists
Account sharing technology enables the farmers' market and reshapes the efficiency of transaction management services
Grid system in bootstrap
Possible problems and solutions of using scroll view to implement slider view
MallBook:后疫情时代下,酒店企业如何破局?
LeetCode 1828. Count the number of points in a circle
离线安装wireshark2.6.10
使用WinMTR软件简单分析跟踪检测网络路由情况
TS type gymnastics: illustrating a complex advanced type
随机推荐
多次跳槽后,月薪等于老同事的年薪
Knowledge supplement: basic usage of redis based on docker
尺取法:有效三角形的个数
[human version] Web3 privacy game in the dark forest
嵌入式系統開發筆記80:應用Qt Designer進行主界面設計
使用WinMTR软件简单分析跟踪检测网络路由情况
Volley parsing data shows networking failure
Knowledge supplement: redis' basic data types and corresponding commands
LeetCode 1828. Count the number of points in a circle
"Target detection" + "visual understanding" realizes the understanding of the input image
MySQL function variable stored procedure
JS image path conversion Base64 format
嵌入式系统开发笔记81:使用Dialog组件设计提示对话框
[ta- frost wolf \u may- hundred people plan] 1.1 rendering pipeline
All in one 1086: Jiaogu conjecture
674. longest continuous increasing sequence force buckle JS
Introduction of Spock unit test framework and its practice in meituan optimization___ Chapter I
[send email with error] 535 error:authentication failed
Analysis and case of pageobject mode
Recommend the best product development process in the Internet industry!