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

📄 haarinv1.m

📁 Mathematical Methods by Moor n Stiling.
💻 M
字号:
function s = haarinv1(h,nlevel)
% Do the computations for the inverse Haar transform, working toward the
% wavelet lifting transform

% Copyright 1999 by Todd K. Moon

L = length(h);
n = log2(L);
if(n ~= round(n))
  error('Sequence length must be a power of 2');
end
if(nargin==1)
  nlevel = n;
end
skip = L/2^(n-nlevel)
for i=1:nlevel
  eveni = 1:skip:L-1
  oddi = skip/2+1:skip:L
  skip = skip/2;
  h(eveni) = h(eveni) - h(oddi)/2; % U = identity/2
  h(oddi) = h(oddi) + h(eveni);    % P = identity
end
s = h;

⌨️ 快捷键说明

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