Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

ashapesampler (version 1.0.0)

runif_shell_3D: Uniform Shell 3D

Description

Returns points uniformly sampled from spherical shell in 3D

Usage

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

Value

n by 3 matrix of points

Arguments

n

number of points

rmax

radius of outer sphere

rmin

radius of inner sphere

Examples

Run this code
# 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