runif_shell_3D {ashapesampler}R Documentation

Uniform Shell 3D

Description

Returns points uniformly sampled from spherical shell in 3D

Usage

runif_shell_3D(n, rmax = 1, rmin = 0.5)

Arguments

n

number of points

rmax

radius of outer sphere

rmin

radius of inner sphere

Value

n by 3 matrix of points

Examples

# Sample 100 points with defaults rmax=1, rmin=0.5
runif_shell_3D(100)
# Sample 100 points with rmax=0.75, rmin=0.25
runif_shell_3D(100, 0.75, 0.25)

[Package ashapesampler version 1.0.0 Index]