rSamplePair {mixAK} | R Documentation |
Sample a pair (with replacement)
Description
For given , the function samples with replacement from a
uniform distribution on a set of pairs
Usage
rSamplePair(n, K)
Arguments
n |
number of pairs to sample. |
K |
a numeric value which determines |
Value
A two-component numeric vector for n
or a matrix with 2
columns with sampled pairs in rows for
n
Author(s)
Arnošt Komárek arnost.komarek@mff.cuni.cz
Examples
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)
[Package mixAK version 5.7 Index]