descendZero               package:xcms               R Documentation

_F_i_n_d _s_t_a_r_t _a_n_d _e_n_d _p_o_i_n_t_s _o_f _a _p_e_a_k

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

     Decends down the sides of a data peak and finds either the points
     greater than or equal to the zero intercept, the intercept with a
     given value, or the bottom of the first valley on each side.

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

     descendZero(y, istart = which.max(y))
     descendValue(y, value, istart = which.max(y))
     descendMin(y, istart = which.max(y))

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

       y: numeric vector with values

  istart: starting point for descent

   value: numeric value to descend to

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

     An integer vector of length 2 with the starting and ending
     indicies of the peak start and end points.

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

     Colin A. Smith, csmith@scripps.edu

_S_e_e _A_l_s_o:

     'descendValue'

_E_x_a_m_p_l_e_s:

     normdist <- dnorm(seq(-4, 4, .1)) - .1
     xcms:::descendZero(normdist)
     normdist[xcms:::descendZero(normdist)]
     xcms:::descendValue(normdist, .15)
     normdist[xcms:::descendValue(normdist, .15)]
     xcms:::descendMin(normdist)

