⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ratioa.m

📁 这是一个关于hht变换很有用的工具箱
💻 M
字号:
function r = ratioa(h)
 
% The function RATIOA calculates the local non-orthogonal leakage for pair of adjoining components.
%
% Calling sequence-
% r=ratioa(h)
%
% Input-
%	h	- 2-D matrix h(n,k) of IMF components
%		 excluding the trend component.
% Output-
%	r	- vector of the ratio for adjoining components
%		(h(1,i)*h(1,j)+...+h(n,i)*h(n,j))/
%		(h(1,i)^2+h(1,j)^2)+...+(h(n,i)^2+h(n,j)^2)
%

%----- Get dimensions and initialize
[npt,knb] = size(h);
r1=zeros(knb-1,1);

%----- Calculate the ratio for each pair
for i=1:knb-1,
   j=i+1;
   a1=abs(sum(h(:,i).*h(:,j)));
   b1=sum(h(:,i).*h(:,i))+sum(h(:,j).*h(:,j));
   r1(i)=a1/b1;
end
%r=mean(r1);
%s=std(r1);
%q=max(r1-r);
r=r1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -