MultiBayes2.m
上传用户:sla11nk8
上传日期:2013-03-09
资源大小:21k
文件大小:1k
源码类别:

其他

开发平台:

Matlab

  1. function ws = MultiBayes2(wc,L)
  2. %
  3. %%%%%%%%%%%%%%%It's my own function!!!!!
  4. %
  5. % MultiBayes2 -- Apply Shrinkage to Wavelet Coefficients 2-d
  6. %  Usage 
  7. %    ws = MultiBayes(wc,L)
  8. %  Inputs 
  9. %    wc    2-d Wavelet Transform of noisy sequence with N(0,1) noise
  10. %    L     low-frequency cutoff for Wavelet Transform
  11. %  Outputs 
  12. %    ws    result of applying BayesThresh to each dyadic block
  13. %
  14. [n,J] = dyadlength(wc);
  15. ws = wc;
  16.     for j=(J-1):-1:L
  17.         [t1,t2]=dyad2HH(j);
  18.         ws(t1,t2)=BayesThresh2(wc(t1,t2));
  19.         [t1,t2]=dyad2HL(j);
  20.         ws(t1,t2)=BayesThresh2(wc(t1,t2));
  21.         [t1,t2]=dyad2LH(j);
  22.         ws(t1,t2)=BayesThresh2(wc(t1,t2));
  23.     end