資源簡介
elm極限學習機預測風速 預測精度高能夠形成完成的預測風速
代碼片段和文件信息
clc;
clear?all;
load?exnet;
out=sim(netxx);
out=out*(v2-v1)+v1;
yy=yy*(v2-v1)+v1;
figure(1)
t=70:1:80;
outt=out(t)
plot(outt‘--‘);
hold?on;
t=70:1:80;
yy=yy(t)
plot(yy)
xlabel(‘時間?s‘);ylabel(‘風速?米/s‘);
legend(‘虛線:預測數據曲線‘‘實線:實際數據曲線‘);
figure(2)
subplot(212);plot(outt)
xlabel(‘時間?s‘);ylabel(‘預測曲線?米/s‘);
subplot(211);plot(yy)
xlabel(‘時間?s‘);ylabel(‘實際曲線?米/s‘);
len=length(out);
for?i=1:11
??error(i)=outt(i)-yy(i)
end
figure(3)
plot(1:11error);
xlabel(‘時間?s‘);ylabel(‘預測值與實際值的誤差?米/s‘);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????571??2015-10-21?09:42??ELM\elman1.m
?????文件????????624??2015-05-20?19:51??ELM\elmpredict.m
?????文件????????864??2015-05-20?19:51??ELM\elmtrain.m
?????文件????7886668??2015-10-20?20:23??ELM\exnet.mat
?????文件????????837??2015-05-20?22:32??ELM\Qu.m
?????文件???????1110??2015-05-20?19:50??ELM\Queue.m
?????文件???????8122??2015-10-20?20:13??ELM\Unti
?????文件????????571??2015-05-24?15:21??ELM\Unti
?????文件????????571??2015-05-24?15:22??ELM\Unti
?????目錄??????????0??2016-11-21?10:53??ELM
-----------?---------??----------?-----??----
??????????????7899938????????????????????10
評論
共有 條評論