VectorToBin          package:GraphAlignment          R Documentation

_C_o_n_v_e_r_t _v_e_c_t_o_r _t_o _b_i_n _r_e_p_r_e_s_e_n_t_a_t_i_o_n

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

     Convert a vector of real numbers to a vector of integer bin
     numbers  according to the specified lookup vector.

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

     VectorToBin(v, lookup, clamp=TRUE)

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

       v: input vector

  lookup: lookup vector

   clamp: clamp values to lookup range

_D_e_t_a_i_l_s:

     This function transforms a vector of arbitrary values into a
     vector of bin  numbers corresponding to the data in the input
     vector. Bin numbers are found using the specified lookup table
     (see GetBinNumber).

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

     The return value is a vector containing the bin numbers for the
     elements of the input vector.

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

     Joern P. Meier, Michal Kolar, Ville Mustonen, Michael Laessig, and
     Johannes Berg

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

       x <- rnorm(10)
       lookup <- 0.2*(-5:5)
       VectorToBin(x, lookup)

