|
10体能
level = 6;
[LO_D,HI_D,LO_R,HI_R] = wfilters('db4');
%大家注意这里:
LO_D, the decomposition low-pass filter
HI_D, the decomposition high-pass filter
LO_R, the reconstruction low-pass filter
HI_R, the reconstruction high-pass filter
但是后面的代码只用了LO_R,其他的一个没用,这是为什么,感觉和以往概念不同,以前不都是要概貌,用小波概貌系数来做,要细节,用小波细节系数来做。现在怎么一个全包了
[yl,yh] = mrdwt(ewx,LO_R,level);
for k = 1:level
cx(k) = corrbound(LO_R,k,0);
end
thres = sqrt(2*log(N)*(1+cx))*sigma*gamma/3;
eyh = yh.*(abs(yh) > kron(thres,ones(N,3*N)));
ee = mirdwt(yl,eyh,LO_R,level);
|
|