runif_ball_3D | R Documentation |
Returns points uniformly centered from closed ball of radius r in 3D space
runif_ball_3D(n, r = 1)
n |
number of points |
r |
radius of ball, default r=1 |
n by 3 matrix of points
# Sample 100 points from unit ball
runif_ball_3D(100)
# Sample 100 points from ball of radius 0.5
runif_ball_3D(100, r=0.5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.