用小波神经网络来对时间序列进行预测.doc

用小波神经网络来对时间序列进行预测.doc

ID:55278801

大小:68.50 KB

页数:15页

时间:2020-05-08

用小波神经网络来对时间序列进行预测.doc_第1页
用小波神经网络来对时间序列进行预测.doc_第2页
用小波神经网络来对时间序列进行预测.doc_第3页
用小波神经网络来对时间序列进行预测.doc_第4页
用小波神经网络来对时间序列进行预测.doc_第5页
资源描述:

《用小波神经网络来对时间序列进行预测.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、/*Note:YourchoiceisCIDE*/#include"stdio.h"voidmain(){}/*用小波神经网络来对时间序列进行预测*//*%Filename:nprogram.m%Description:Thisfilereadsthedatafrom%itssourceintotheirrespectivematricespriorto%performingwaveletdecomposition.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Clearcommandscreenan

2、dvariables*/clc;clear;/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%userdesiredresolutionlevel(Tested:resolution=2isbest)*/level=menu('Enterdesiredresolutionlevel:','1',...'2(Selectthisfortesting)','3','4');switchlevelcase1,resolution=1;case2,resolution=2;case3,resolution=3

3、;case4,resolution=4;endmsg=['Resolutionleveltobeusedis',num2str(resolution)];disp(msg);/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%userdesiredamountofdatatouse*/data=menu('Chooseamountofdatatouse:','1day','2days','3days','4days',...'5days','6days','1week(Selectthisfortest

4、ing)');switchdatacase1,dataPoints=48;/*%1day=48points*/case2,dataPoints=96;/*%2days=96points*/case3,dataPoints=144;/*%3days=144points*/case4,dataPoints=192;/*%4days=192points*/case5,dataPoints=240;/*%5days=240points*/case6,dataPoints=288;/*%6days=288points*/case7,dataPoints=336

5、;/*%1weeks=336points*/endmsg=['No.ofdatapointstobeusedis',num2str(dataPoints)];disp(msg);/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%Menufordatasetselection*/select=menu('UseQLDdataof:','Jan02',...'Feb02','Mar02(Selectthisfortesting)','Apr02','May02');switchselectcase1,de

6、mandFile='DATA200601_QLD1';case2,demandFile='DATA200602_QLD1';case3,demandFile='DATA200603_QLD1';case4,demandFile='DATA200604_QLD1';case5,demandFile='DATA200605_QLD1';end/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%ReadingthehistoricalDEMANDdataintotDemandArray*/selectedDe

7、mandFile=[demandFile,'.csv'];[regionArray,sDateArray,tDemandArray,rrpArray,pTypeArray]...=textread(selectedDemandFile,'%s%q%f%f%s','headerlines',1,'delimiter',',');/*%Displayno.ofpointsintheselectedtimeseriesdemanddata*/[demandDataPoints,y]=size(tDemandArray);msg=['Theno.ofpoin

8、tsintheselectedDemanddatais',num2str(demandDataPoints)

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。