rSamplePair {mixAK} | R Documentation |
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).
rSamplePair(n, K)
n |
number of pairs to sample. |
K |
a numeric value which determines K (see above). |
A two-component numeric vector for n
=2 or a matrix with 2
columns with sampled pairs in rows for n
>2.
Arnošt Komárek arnost.komarek[AT]mff.cuni.cz
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)