runif_annulus {ashapesampler} | R Documentation |
Uniform Sampling from Annulus
Description
Returns points uniformly sampled from annulus in plane
Usage
runif_annulus(n, rmax = 1, rmin = 0.5)
Arguments
n |
number of points to sample |
rmax |
radius of outer circle of annulus |
rmin |
radius of inner circle of annulus |
Value
n by 2 matrix of points sampled
Examples
# Sample 100 points from annulus with rmax=1 and rmin=0.5
runif_annulus(100)
# Sample 100 points from annulus with rmax=0.75 and rmin=0.25
runif_annulus(100, 0.75, 0.25)
[Package ashapesampler version 1.0.0 Index]