当前位置:网站首页>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
边栏推荐
- JMeter login failure, extracting login token, and obtaining token problem solving
- 定了!2022京东全球科技探索者大会之京东云峰会7月13日北京见
- Deep learning | rnn/lstm of naturallanguageprocessing
- 2. Use of classlist (element class name)
- LeetCode 1400. Construct K palindrome strings
- JMeter learning notes 2 - brief introduction to graphical interface
- 【历史上的今天】6 月 30 日:冯·诺依曼发表第一份草案;九十年代末的半导体大战;CBS 收购 CNET
- Note de développement du système embarqué 80: application du concepteur Qt à la conception de l'interface principale
- 陈宇(Aqua)-安全->云安全->多云安全
- 674. longest continuous increasing sequence force buckle JS
猜你喜欢
Knowledge supplement: basic usage of redis based on docker
Network metering - application layer
[deep learning] (4) decoder mechanism in transformer, complete pytoch code attached
Use winmtr software to simply analyze, track and detect network routing
Class and object finalization
Maixll-Dock 快速上手
嵌入式系统开发笔记79:为什么要获取本机网卡IP地址
Go learning --- unit test subtest
[today in history] June 30: von Neumann published the first draft; The semiconductor war in the late 1990s; CBS acquires CNET
The programmer's girlfriend gave me a fatigue driving test
随机推荐
MFC window scroll bar usage
Deep learning | rnn/lstm of naturallanguageprocessing
互联网行业最佳产品开发流程 推荐!
283.移动零
js 图片路径转换base64格式
Concurrent mode of different performance testing tools
Knowledge supplement: basic usage of redis based on docker
HoloLens2开发环境搭建及部署app
高并发下接口幂等性如何保证?
What are permissions? What are roles? What are users?
陈宇(Aqua)-安全->云安全->多云安全
Obtain detailed ideas for ABCDEF questions of 2022 American Games
Maixll-Dock 使用方法
线程常用方法与守护线程
“目标检测“+“视觉理解“实现对输入图像的理解
DO280管理应用部署--RC
Huawei simulator ENSP - hcip - Hybrid Experiment 2
熊市下的Coinbase:亏损、裁员、股价暴跌
MySQL advanced -- you will have a new understanding of MySQL
Do280 management application deployment --rc