runif_in_annulus | R Documentation |
Uniform sampling in an annulus (dimension 2).
runif_in_annulus(n, O, r1, r2)
n |
number of simulations |
O |
center of the annulus |
r1 |
inner radius |
r2 |
outer radius |
The simulations in a n
times 2
matrix.
sims <- runif_in_annulus(100, c(0, 0), 1, 2)
plot(sims, xlim = c(-2, 2), ylim = c(-2, 2), asp = 1, pch = 19)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.