closest                package:dprep                R Documentation

_A_u_x_i_l_i_a_r_y _f_u_n_c_t_i_o_n _f_o_r _c_o_m_p_u_t_i_n_g _t_h_e _B_a_y'_s _a_l_g_o_r_i_t_h_m

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

     Function used by baysout to select the k vectors that are closer
     to  a given instance.

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

     closest(dis, neigh, k)

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

     dis: a instance from the dataset under study

   neigh: matrix containing the distance form the given observations 
          to each of its k neighbors.

       k: The number of nearest neighbors

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

     Caroline Rodriguez

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

     'baysout'

