rSamplePair              package:mixAK              R Documentation

_S_a_m_p_l_e _a _p_a_i_r (_w_i_t_h _r_e_p_l_a_c_e_m_e_n_t)

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

     For given K, the function samples with replacement from a uniform
     distribution on a set of pairs (1,2), (1,3), ..., (1,K), (2,3),
     ..., (2,K), ..., (K-1,K).

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

       rSamplePair(n, K)

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

       n: number of pairs to sample.

       K: a numeric value which determines K (see above).

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

     A two-component numeric vector for 'n'=2 or a matrix with 2
     columns with sampled pairs in rows for 'n'>2.

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

     Arno&#353t Kom&#225rek arnost.komarek[AT]mff.cuni.cz

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

     rSamplePair(n=1, K=2)
     rSamplePair(n=10, K=2)

     rSamplePair(n=1, K=3)
     rSamplePair(n=10, K=3)

     rSamplePair(n=1, K=4)
     rSamplePair(n=10, K=4)

