共享关联积分Corrleration_Integral代码
这是我自己用来计算关联积分的程序,希望对大家有用。function C_I=Correlation_Integral(m,Y,r)
%%%the data come frome the disjoint.m,it is also a sub-time-serial ,Y=data(i,:)'
%%%or the data come from the reconstitution.m,Y is the reconstitution space
=size(Y);
sum_H=0;
M=N-(m-1);
if Y(N)~=0;
for i=1:N;
for j=i+1:N;
d=norm((Y(i,:)-Y(j,:)),inf);
sita=heaviside(r,d);
sum_H=sum_H+sita;
end
end
else
for i=1:N-1;
for j=i+1:N-1;
d=norm((Y(i,:)-Y(j,:)),inf);
sita=heaviside(r,d);
sum_H=sum_H+sita;
end
end
end
C_I=2*sum_H/(M*(M-1));
回复 楼主 的帖子
感谢分享! 楼主用的Heaviside函数和混沌工具箱里面的一致么? 就是在help看它的句法结构是这样的回复一楼
谢谢了! 谢谢了 谢谢楼主了
页:
[1]