MatrixToBin          package:GraphAlignment          R Documentation

_C_o_n_v_e_r_t _m_a_t_r_i_x _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 matrix of real numbers to a vector of integer bin
     numbers according to the specified lookup vector.

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

     MatrixToBin(M, lookup, clamp=TRUE)

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

       M: input matrix

  lookup: lookup vector

   clamp: clamp values to lookup range

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

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

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

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

_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:

       m <- matrix(rnorm(25), 5, 5)
       lookup <- 0.2*(-5:5)
       MatrixToBin(m, lookup)

