登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

该文的原始网址是:http://rcada.ncu.edu.tw/research1_clip_ex.htm,但是打开较慢,生怕有一天打不开,现全部粘贴至此。和大家共享,自己留用。

Tutorial for the HHT MATLAB  program

A few examples of how to use these programs are given, with a given dataset “gsta.dat”, which is the annual mean global surface temperature anomaly. In “gsta.dat”, the first column is the time; and the second is the corresponding data value.

1)Load and display data

>> load gsta.dat;

>> plot(gsta(:,1),gsta(:,2));

>> axis([1850 2010 -0.6 0.6]);

>> title('the annual mean global surface temperature anomaly')

>> xlabel('year')

>> ylabel('Kelvin')

2)Using the program as a traditional EMD tool

Thecan be used as an EMD decomposition tool:

>> year=gsta(:,1);

>> inData=gsta(:,2);

>>rslt=eemd(inData,0,1);

>> plot(year,rslt(:,2));

>> hold on;

>> plot(year,rslt(:,3)-0.3);

>> plot(year,rslt(:,4)-0.6);

>> plot(year,rslt(:,5)-0.9);

>> plot(year,sum(rslt(:,6:8),2)-1.3,'r-');

>> hold off

>> set(gca,'yTickLabel',[]);

>> axis([1850 2010 -1.8 0.3]);

>> xlabel('year');

“relt” is a matrix containing the decomposition results, with the first column the original input (“gsta(:,2)”) and the last column the trend. In between are the IMFs of frequencies from high to low.

It should be noted that since in the, the total number of IMFs m is specified as log2(N)-1, in some occasions (such as the one in this example), the components may be excessively extracted. In these cases, the sum of the latest columns may already satisfy the definition of a trend.

3)  Instantaneous frequency of an IMF

The instantaneous frequency can be obtained through callingfunction:

>>omega_m3=ifndq(rslt(:,4),1);

>> subplot(2,1,1);

>> plot(year,rslt(:,4));

>> axis([1850 2010 -0.12 0.12]);

>> title('IMF C3');

>> ylabel('Kelvin');

>> grid;

>> subplot(2,1,2);

>> plot(year, omega_m3/2/pi,'r-');

>> grid;

>> xlabel('year');

>> ylabel('cycle/year');

>> title('instantaneous frequency');

>> axis([1850 2010 0 0.12]);

It should be noted that the instantaneous frequency calculation program is not suitable for under sampled oscillations, such as the first IMF (with an averaged period about 3 data points).  However, for such under sampled oscillations, the instantaneous frequency is no longer “instantaneous” any way, and any method used to obtain such a quantity will have big errors.

4)  Using the program as a EEMD tool

Thecan be used as an EEMD decomposition tool. In this case, the noise assed has an amplitude (standard deviation) of 0.2 of the standard deviation of the linearly detrended annual mean global surface temperature anomaly; and the number of ensemble is 100:

>>rslt=eemd(inData,0.2,100);

>> t(1)=1850;

>> t(2)=2010;

>> y1(1)=0;

>> y1(2)=0;

>> y2(1)=-0.3;

>> y2(2)=-0.3;

>> y3(1)=-0.6;

>> y3(2)=-0.6;

>> y4(1)=-0.9;

>> y4(2)=-0.9;

>> y5(1)=-1.2;

>> y5(2)=-1.2;

>> y6(1)=-1.6;

>> y6(2)=-1.6;

>> plot(t,y1,'k-');

>> hold on;

>> plot(t,y2,'k-');

>> plot(t,y3,'k-');

>> plot(t,y4,'k-');

>> plot(t,y5,'k-');

>> plot(t,y6,'k-');

>> plot(year,rslt(:,1));

>> plot(year,rslt(:,3)-0.3);

>> plot(year,rslt(:,4)-0.6);

>> plot(year,rslt(:,5)-0.9);

>> plot(year,rslt(:,6)-1.2);

>> plot(year,sum(rslt(:,7:8),2)-1.6,'r-');

>> set(gca,'yTickLabel',[]);

>> title('EEMD decomposition of GSTA (A_n=0.2; N_e_s_b=100)')

>> axis([1850 2010 -2.1 0.2]);

>> xlabel('year');

5)  Statistical significance test

Since the annual mean global surface temperature anomaly behaves completely different from a white noise series, we use computer generated white noise to illustrate how thecan be used:

>> clear;

>> clf;

>>data=randn(512,1);

>> rslt=eemd(data,0,1);

>> imfs=rslt(:,2:8);

>>[sigline95,logep]=significance(imfs,0.05);

>>[sigline99,logep]=significance(imfs,0.01);

>> plot(sigline95(:,1),sigline95(:,2));  %  95 percenta line

>> hold on

>> plot(sigline99(:,1),sigline99(:,2),'m-');  % 99 percenta line

>> plot(logep(:,1),logep(:,2),'r*');

>> plot(logep(1,1),logep(1,2),'k*');

>> grid;

>> xlabel('LOG2 ( Mean Period )');

>> ylabel('LOG2 ( Mean Normalized Energy )');

>> title('Significance test of IMFs of white noise');

>> axis([0 10 -7 0])

3)  Trend and detrending

For example, in the previous decomposition, the sum of the last three columns satisfies the definition of trend well.

>> plot(year, rslt(:,1));

>> hold on;

>> plot(year, sum(rslt(:,7:8),2),'r-');

>> plot(year, sum(rslt(:,6:8),2),'g-');

>> plot(year, sum(rslt(:,5:8),2),'m-');

>> title('Trends of different timescales');

>> ylabel('Kelvin');

>> xlabel('year');

>> grid;

eemd的r语言序列_EEMD程序,和大家分享相关推荐

  1. R语言数据科学程序包:Tidyverse介绍

    R语言数据科学程序包:Tidyverse介绍 1. R语言简介 2. 数据科学简介 3. Tidyverse简介 1. R语言简介 R语言是用于统计计算和绘图的免费软件.它可以在Windows, Un ...

  2. 【视频】什么是Bootstrap自抽样及应用R语言线性回归预测置信区间实例|数据分享

    最近我们被客户要求撰写关于Bootstrap的研究报告,包括一些图形和统计输出. 自抽样统计是什么以及为什么使用它? 本文将自抽样方法与传统方法进行比较,并了解它为何有用.并在R语言软件中通过对汽车速 ...

  3. 【视频】主成分分析PCA降维方法和R语言分析葡萄酒可视化实例|数据分享

    最近我们被客户要求撰写关于主成分分析PCA的研究报告,包括一些图形和统计输出.降维技术之一是主成分分析 (PCA) 算法,该算法将可能相关变量的一组观察值转换为一组线性不相关变量.在本文中,我们将讨论 ...

  4. 【视频】线性回归中的贝叶斯推断与R语言预测工人工资数据|数据分享

    最近我们被客户要求撰写关于线性回归的研究报告,包括一些图形和统计输出. 在这个视频中,我们转向简单线性回归中的贝叶斯推断. 我们将使用一个参照先验分布,它提供了频率主义解决方案和贝叶斯答案之间的联系. ...

  5. 【冰糖R语言】实现程序进度条:txtProgressBar() winProgressBar() tkProgressBar()

    可使用R内置库 utli 实现文本进度条功能,内容涉及以下几个方法: 1.txtProgressBar(min = 0, max = 1, initial = 0, char = "=&qu ...

  6. R语言-随机点名程序(使用runif函数)

    题目要求: 利用 runif 函数写一个随机点名的程序, 实现以下功能: 已知学生列表,输入学生个数, 随机输出指定个数的学生姓名. 不能使用 sample 函数 使用runif函数 避免重复点名 完 ...

  7. python r语言 数据分析统计服_【分享】Python和R语言的数据分析/挖掘工具互查

    数极客,拥有16种数据分析模型的新一代用户行为分析平台! 写在前面 在此总结一些在数据分析/挖掘中可能用到的功能,方便大家索引或者从一种语言迁移到另一种.当然,这篇博客还会随时更新(不会另起一篇,为了 ...

  8. R语言快速运行脚本程序

    在之前打开R语言的脚本程序时,一直是 文件–>运行R脚本文件,一直认为还有更加简单的方法,经过查询,发现直接用语句运行R文件的方法如下: setwd("D:/workspace/R&q ...

  9. R语言绘图:28个实用程序包

    本文转载自" 阿虎定量笔记",作者郑连虎,转载己获授权.其他人转载请联系原作者,点我跳转原文. 全文注释 # 示例参考帮助文档 # 我用Rstudio重现了所有示例 # 初识R语言 ...

  10. r语言dataellipse_R语言绘图:28个实用程序包

    原标题:R语言绘图:28个实用程序包 全文注释 # 示例参考帮助文档 # 我用Rstudio重现了所有示例 # 初识R语言,请戳我的原创推文""与"" # 使用 ...

最新文章

  1. ADPRL - 近似动态规划和强化学习 - Note 7 - Approximate Dynamic Programming
  2. 抖音AI火了!以视频搜视频,不知小姐姐叫什么,也能搜出她的影像
  3. 手机拍视频,实时换背景,继马卡龙玩图后,Versa又出了一款更厉害的App
  4. uni-app读取html缓存,uni-app同步缓存值 设置 读取 删除(示例代码)
  5. 数据结构与算法 / 数组(Array)
  6. 【cropper】限制图片大小
  7. python可以做什么工作-Python入门后,想要从事自由职业可以做哪方面工作?
  8. 使用百度编辑器--ueditor,后台接收提交编辑的内容,HTML不见了, 赋值不了,赋值之后,html暴露出来了??...
  9. java weka 使用_如何在Java代码中的Weka中使用日期类型?
  10. 济南学习 Day 5 T1 晚
  11. 【PHP面向对象(OOP)编程入门教程】20.PHP5接口技术(interface)
  12. Linux 文件系统(二)---执行过程及结构间的关系
  13. 笔画输入法6.8豪华版 破解版
  14. java音乐登陆界面_onlinemusic java在线音乐平台,实现了基本的注册登录功能,有界面,对 的初学者有帮助 Jsp/Servlet 238万源代码下载- www.pudn.com...
  15. 《ParaView Tutorial》
  16. VScode淡绿色护眼设置
  17. uniapp app真机测试
  18. 某银行无线网络频繁掉线重认证分析、解决方案及抓包经验分享
  19. stm32f4实现s6d1121+xtp2046触摸屏功能
  20. 关于Linux下面移动硬盘读不出来

热门文章

  1. 整理一下第一次参加华为大数据挑战赛自己的一些收获吧(正式赛篇阶段一)
  2. CentOS7(Linux)详细安装教程
  3. 怎么给pdf添加水印-四个简单步骤
  4. 移动安全-安卓Smail代码入门讲解
  5. Matlab S-function 使用总结
  6. Tampermonkey油猴脚本 jquery 常用组件
  7. TimePicker使用全解
  8. 《华为研发》阅读 - 13
  9. 14届数独-真题标准数独-Day 5-20220120
  10. Mob免费短信验证教程