runif_annulus: Uniform Sampling from Annulus

View source: R/2D.R

runif_annulusR 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)

ashapesampler documentation built on May 29, 2024, 3:22 a.m.