dkernel                 package:klaR                 R Documentation

_E_s_t_i_m_a_t_e _d_e_n_s_i_t_y _o_f _a _g_i_v_e_n _k_e_r_n_e_l

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

     Given an estimated kernel density this function estimates the
     density of a new vector.

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

     dkernel(x, kernel = density(x), interpolate = FALSE, ...)

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

       x: vector of which the density should be estimated

  kernel: object of 'class' 'density'

interpolate: Interpolate or use 'density' of nearest point?

     ...: currently not used.

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

     Denstiy of 'x' in 'kernel'.

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

     Karsten Luebke

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

     'density', 'NaiveBayes'

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

     kern <- density(rnorm(50))
     x <- seq(-3, 3, len = 100)
     y <- dkernel(x, kern)
     plot(x, y, type = "l")

