get.num.modes            package:rflowcyt            R Documentation

_N_u_m_b_e_r _o_f _m_o_d_e_s _o_f _a _g_a_u_s_s_i_a_n _k_e_r_n_e_l

_D_e_s_c_r_i_p_t_i_o_n:

     get.num.modes returns the number of modes of the gaussian kernel
     estimate for a given data vector and bandwidth on the standardized
     scale

_U_s_a_g_e:

     get.num.modes(x, h)

_A_r_g_u_m_e_n_t_s:

       x: the data vector 

       h: the bandwidth for the standardized data vector 

_V_a_l_u_e:

       x: number of modes

_A_u_t_h_o_r(_s):

     Kevin Rader

_R_e_f_e_r_e_n_c_e_s:

     B.W. Silverman (1981),Using Kernel Density Estimates to
     Investigate Multimodatlity. J.R. Statist. Soc. B,43,1,97-99.

_S_e_e _A_l_s_o:

     'get.h', 'get.p', 'emp.f'

_E_x_a_m_p_l_e_s:

      set.seed(12345)
      x<-rnorm(50)
      h<-get.h(x)
      num<-c(get.num.modes(x,h),get.num.modes(x,h-0.005))
      num

