smoothDWT          package:MassSpecWavelet          R Documentation

_s_m_o_o_t_h (_d_e_n_o_i_s_e) _t_h_e _s_p_e_c_t_r_u_m _b_y _D_W_T (_D_i_s_c_r_e_t_e _W_a_v_e_l_e_t _T_r_a_n_s_f_o_r_m)

_D_e_s_c_r_i_p_t_i_o_n:

     Smooth (denoise) the spectrum by DWT (Discrete Wavelet Transform)

_U_s_a_g_e:

     smoothDWT(ms, nLevel = 6, wf = "la8", localNoiseTh = seq(1, 0, by = -0.2), localWinSize = 500, globalNoiseTh = 0.75, smoothMethod = c("soft", "hard"), method = c('dwt', 'modwt'))

_A_r_g_u_m_e_n_t_s:

      ms: a vector representing the mass spectrum 

  nLevel: the level of DWT decomposition 

      wf: the name of wavelet for DWT 

localNoiseTh: local noise level threshold 

localWinSize: local window size for estimate local noise threshold 

globalNoiseTh: global noise level threshold 

smoothMethod: the method used for denoising. 'hard' means keeping the
          dwt coefficients higher than the threshold unchanged; "soft"
          means the dwt coefficients higher than the threshold were
          subtracted by the threshold. 

  method: 'dwt' or 'modwt' used for decomposition 

_V_a_l_u_e:

     return the smoothed mass spectrum with the 'detail' component of
     DWT as an attribute 'detail'.

_A_u_t_h_o_r(_s):

     Pan Du

