GenerateExample        package:GraphAlignment        R Documentation

_G_e_n_e_r_a_t_e _e_x_a_m_p_l_e _i_n_p_u_t _d_a_t_a

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

     Generate input data which can be used as an example.

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

     GenerateExample(dimA, dimB, filling, covariance, symmetric=FALSE, numOrths=0, correlated=NA)

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

    dimA: size of network A

    dimB: size of network B

 filling: fraction of entries which are not explicitly set to zero

covariance: covariance of values

symmetric: generate symmetric matrices

numOrths: number of diagonal elements to set to 1 in example matrix R

correlated: indices of correlated rows and columns

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

     Symmetric example matrices A, B can be generated by specifying
     TRUE as the 'symmetric' argument. If the 'numOrths' argument is
     specified, a number of diagonal elements of R equal to the value
     will be set to 1. If a vector is specified as the 'correlated'
     argument, the specified rows and columns will be set to correlated
     values. Leaving this argument blank will result in pairwise
     correlations of all entries in A,B (or, if the matrices are of
     different rank, all elements of the smaller on will be correlated
     with the corresponding parts of the larger matrix).

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

     The return value is a list containing example matrices A (a), B
     (b) and R (r).

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

       ex<-GenerateExample(dimA=22, dimB=22, filling=.5, covariance=.6,
         symmetric=TRUE, numOrths=10, correlated=seq(1,18))

