C-C算法中
data_d=disjoint(data,N,t);%将时间序列分解成t个不相交的时间序列
disjoint函数如下:
function data_d=disjoint(data,N,t)
%the function is used to subdivid the time series into t disjoint time
%series.
%data:the time series
%N:the length of the time series
%t:the index lag
%skyhawk
for i=1:t
for j=1:(N/t)
data_d(i,j)=data(i+(j-1)*t);
end
end
如果N=6,当t=4时,分解的结果为{x(1)},{x(2)},{x(3)},{x(4)}.
是否应该将disjoint函数改一下 |