全球旧事资料 分类
umi
e
d
RRRij
e
d
R
matlab求灰色关联度矩阵源代码
201012112257
fu
ctio
greyrelatio
aldegreeXc
GRAYRELATIONALDEGREEthisfu
ctio
isusedforcalculati
gthegeryrelatio
betwee
sque
ce
rememeberthatthefirstcolum
ofthei
putmatrixisthedesicio
attributio
sque
ceswhatwewa
ttocalculateisthegreyralatio
aldegreebetwee
ita
dotherattributio
s
Xisthesque
cematrixcistheparameterusedi
thefu
ctio
i
mostofthetimethevalueofcis05
firstrowX1
reci_firstrow1firstrow
reci_co
vertdiagreci_firstrow
i
itialMIRRORXreci_co
vertfi
dthei
itialvaluemirrorofthesequcematrix
Ai
itialMIRROR
row
colum
sizeA
ffori2
row
CAiA1
DabsC
evalB
um2striD
amaxmaxevalB
um2stri
ami
mi
evalB
um2stri
maxarrayi1amax
mi
arrayi1ami
e
dfi
dthediffere
cesque
cea
dthemaxvaluea
dmi
valueofeachsque
ce
maxmaxmaxmaxarray
mi
mi
mi
mi
array
fori2
row
forj1
colum
evalgreyrelatio
degree
um2stri
jmi
mi
cmaxmaxB
um2strijcmaxmax
e
d
e
dcalculatethegreyralatio
aldegreeofeachdata
fori2
row
evalgreyrelatioa
aldegree_value
um2strimea
greyrelatio
degree
um2stri
e
d
基于matlab灰色关联度计算的实现
2006年07月28日星期五上午1106
fu
ctio
ri
cide
t_degreex0x1
computethei
cide
tdegreeforgreymodel
Desig
edbyNIXIUHUIDalia
FisherU
iversity
17August2004LastmodifiedbyNXHat21August2004
数据初值化处理
x0_i
itialx0x01
tempsizex1
brepmatx111temp2
x1_i
itialx1b
分辨系数选择
fK01
dispThegreyi
terco
ectdegreeis
x0_extrepmatx0_i
itialtemp11
co
trast_matabsx0_extx1_i
itial
delta_mi
mi
mi
co
trast_matdelta_mi
在数据初值化后实际为零delta_maxmaxmaxco
trast_mat
adelta_mi
Kdelta_max
i
cide
ce_coefficie
taco
trast_matKdelta_max得到关联系数
rsumi
cide
ce_coefficie
ttemp2得到邓氏面积关联度
我们根据图1的步骤和图2的数据进行编程实现程序如下
清除内存空间等
clear
closeall
clc
载入源数据其实这里可以载入execl表格的
15参与评价的人数
m4参与评价的指标个数
X_0zeros
m数据矩阵
X_2zeros
m偏差结果的求取矩阵
X_3zeros
m相关系数计算矩阵
a1_0131817181717181713171813181318
a2_0181817171813171318131713131717
fa3_0486743334356418939474344379741143967398334114058341930752122
a4_01010735454074205930852954542276指标数
X_1a1_0a2_0a3_0a4_0最后使用到的数据矩阵
1寻找参考列
x0maxa1_0maxa2_0maxa3_0maxa4_0取每r
好听全球资料 返回顶部