Returns points uniformly sampled from spherical shell in 3D
runif_shell_3D(n, rmax = 1, rmin = 0.5)
n by 3 matrix of points
number of points
radius of outer sphere
radius of inner sphere
# 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)
Run the code above in your browser using DataLab