📄 wpanalysis.sci
字号:
function wp = WPAnalysis(x,D,qmf)
// WPAnalysis -- Dyadic table of all Wavelet Packet coefficients
// Usage
// wp = WPAnalysis(x,D,qmf)
// Inputs
// x array of dyadic length n=2^J
// D degree of finest frequency partition
// qmf orthonormal quadrature mirror filter
// Outputs
// wp array of Wavelet Packet Decompositions
// Coefficients for frequency interval
// [b/2^d,(b+1)/2^d] is stored in
// wp(packet(d,b,n),d+1)
//
// Description
// Creates a Wavelet Packet table of maximum depth D for the
// signal specified by x.
//
// See Also
// WPSynthesis, WPTour, DownDyadHi, DownDyadLo
//
// References
// R.R. Coifman, Y. Meyer, C. Quake and M.V. Wickerhauser
//
// Copyright Aldo I Maalouf
n = length2(x);
wp = zeros(n,D+1);
x = ShapeAsRow(x);
wp(:,1) = x';
for d=0:(D-1),
lson = 0;
for b=0:(2^d-1),
s = wp(packet(d,b,n),d+1)';
hs = DownDyadHi(s,qmf);
ls = DownDyadLo(s,qmf);
wp(packet(d+1,2*b+lson,n) ,d+2) = ls';
wp(packet(d+1,2*b+1-lson,n),d+2) = hs';
lson=1-lson;
end
end
endfunction
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -