runif_disk {ashapesampler}R Documentation

Uniform sampling from disk

Description

Returns points uniformly sampled from disk of radius r in plane

Usage

runif_disk(n, r = 1)

Arguments

n

number of points to sample

r

radius of disk

Value

points n by 2 matrix of points sampled

Examples

# Sample 100 points from unit disk
runif_disk(100)
# Sample 100 points from disk of radius 0.7
runif_disk(100, 0.7)

[Package ashapesampler version 1.0.0 Index]