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

