runif_shell_3D: Uniform Shell 3D

View source: R/3D.R

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

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