ht.m

来自「去噪工具包」· M 代码 · 共 37 行

M
37
字号
function [out,wcoef,wcoefrest]=HT(Noisy,L,qmf,sigma)
%  HT -- Hard Threshold Applied to Wavelet Coefficients.
%  Usage 
%    [out,wcoef,wcoefrest] = HT(Noisy,L,qmf,sigma,coef)
%  Inputs
%    Noisy      1-d signal. length(y)= 2^J
%    L      Low-Frequency cutoff for shrinkage (e.g. L=4)
%               Should have L << J!
%    qmf    Quadrature Mirror Filter for Wavelet Transform
%               Optional, Default = Symmlet 8.
%    sigma  Standard deviation of additive Gaussian White Noise.
%  Outputs 
%    out     	estimate, obtained by applying hard thresholding on
%          	wavelet coefficients
%    wcoef	Wavelet Transform of input signal	
%    wcoefrest  Wavelet Transform of estimate
%

  n=length(Noisy) ;
  wcoef = FWT_PO(Noisy,L,qmf) ;
  thresh= sqrt(2*log(n))*sigma;
  wcoefrest = HardThresh(wcoef,thresh);
  out    = IWT_PO(wcoefrest,L,qmf);
  
% Written by Maureen Clerc and Jerome Kalifa, 1997
% clerc@cmapx.polytechnique.fr, kalifa@cmapx.polytechnique.fr
    
    
%   
% Part of WaveLab Version 802
% Built Sunday, October 3, 1999 8:52:27 AM
% This is Copyrighted Material
% For Copying permissions see COPYING.m
% Comments? e-mail wavelab@stat.stanford.edu
%   
    

⌨️ 快捷键说明

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