当前位置:网站首页>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
边栏推荐
- PageObject模式解析及案例
- TASK04|數理統計
- C language games (I) -- guessing games
- 互联网行业最佳产品开发流程 推荐!
- 多次跳槽后,月薪等于老同事的年薪
- Why is Hong Kong server most suitable for overseas website construction
- Maixll-Dock 快速上手
- MySQL advanced -- you will have a new understanding of MySQL
- ThreeJS开篇
- Tip of edge browser: enter+ctrl can automatically convert the address bar into a web address
猜你喜欢

Rule method: number of effective triangles

Maixll-Dock 快速上手

京东智能客服言犀意图体系搭建和意图识别技术介绍

Embedded System Development Notes 79: why should I get the IP address of the local network card

创新界,聚势行 | 2022人大金仓“百城巡展”火热开启

NFT: start NFT royalty journey with eip-2981

Custom components in applets

Use winmtr software to simply analyze, track and detect network routing

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

MySQL advanced -- you will have a new understanding of MySQL
随机推荐
Analyse et cas du modèle pageobject
Internet winter, how to spend three months to make a comeback
What does ft mean in the data book table
Embedded System Development Notes 80: using QT designer to design the main interface
JMeter learning notes 2 - brief introduction to graphical interface
2. Use of classlist (element class name)
嵌入式系统开发笔记79:为什么要获取本机网卡IP地址
206.反转链表
Grid system in bootstrap
Note de développement du système embarqué 80: application du concepteur Qt à la conception de l'interface principale
Possible problems and solutions of using scroll view to implement slider view
LeetCode 1828. Count the number of points in a circle
TCP/IP 详解(第 2 版) 笔记 / 3 链路层 / 3.4 桥接器与交换机 / 3.4.2 多属性注册协议(Multiple Registration Protocol (MRP))
这可能是你进腾讯最后的机会了..
NFT: utilisez EIP - 2981 pour commencer un voyage de redevances NFT
How to ensure the idempotency of the high concurrency interface?
Class and object finalization
Knowledge supplement: basic usage of redis based on docker
[TA frost wolf \u may- hundred talents plan] 1.2.2 matrix calculation
Maixll-Dock 使用方法