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)

