马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?我要加入
x
用多步预测方法预测混沌时间序列,但是预测值是哪个数据啊?好心人帮个忙吧,以下是代码:- clear all
- data=load('shuju(359x96).txt');
- %A=data(:,[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96]);
- A=data(1:337,[4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76,80,84,88,92,96]);
- m1=336;
- m2=m1+1;
- for i=1:m2
- for j=1:24
- X((i-1)*24+j,1)=A(i,j);
- end
- end
- roll=X;%取X数据
- len=m1*24;
- oldroll=roll;
- AverRoll=roll-mean(roll);
- roll=AverRoll;
- mtbp=4;
- taow=mtbp;
- deltaT=1;
- tao=2;
- taowdivtao=round(taow/tao);
- d=3;%taowdivtao+1;
- prestep=24;
- N = length(roll)-prestep;
- MaxStep = 24;
- Step = 1 : 1 : MaxStep;
- [PredictedData] = FunctionChaosPredict(roll(1:N),N,mtbp,deltaT,tao,d,MaxStep);
- subplot(2,1,1);plot(roll(1:len+MaxStep)+mean(oldroll));
- hold on;
- subplot(2,1,1);
- plot(Step + N,PredictedData+mean(oldroll),'r:');
- hold on;
- subplot(2,1,2);
- plot(Step + N,PredictedData+mean(oldroll),'r:');
- hold on;
- subplot(2,1,2);
- plot(Step + N,oldroll(Step + N),'b-');
复制代码
|