getLocalMaximumCWT      package:MassSpecWavelet      R Documentation

_I_d_e_n_t_i_f_y _t_h_e _l_o_c_a_l _m_a_x_i_m_u_m _o_f _e_a_c_h _c_o_l_u_m_n _i_n _2-_D _C_W_T _c_o_e_f_f_i_c_i_e_n_t_s _m_a_t_r_i_x

_D_e_s_c_r_i_p_t_i_o_n:

     Identify the local maximum of each column in 2-D CWT coefficients
     matrix by using a slide window. The size of slide window linearly
     changes from the coarse scale (bigger window size) to detail
     scale. The scale of CWT increases with the column index.

_U_s_a_g_e:

     getLocalMaximumCWT(wCoefs, minWinSize= 5, amp.Th = 0)

_A_r_g_u_m_e_n_t_s:

  wCoefs: 2-D CWT coefficients, each column corresponding to CWT
          coefficient at one scale. The column name is the scale.

minWinSize: The minimum slide window size used.

  amp.Th: The minimum peak amplitude. 

_V_a_l_u_e:

     return a matrix with same dimension as CWT coefficient matrix,
     wCoefs. The local maxima are marked as 1, others are 0.

_A_u_t_h_o_r(_s):

     Pan Du

_S_e_e _A_l_s_o:

     'localMaximum'

_E_x_a_m_p_l_e_s:

             data(exampleMS)
             scales <- seq(1, 64, 3)
             wCoefs <- cwt(exampleMS[5000:11000], scales=scales, wavelet='mexh')
             
             localMax <- getLocalMaximumCWT(wCoefs)
             plotLocalMax(localMax)

