powered by
Generates points that form a ball with uniform density.
ball(n, r, dim)
Number of points to generate.
Radius of the ball.
Dimension of the points.
Matrix of points with n rows and dim cols.
n
dim
mouseset
# NOT RUN { M = ball(4000, 0.9) plot(M, cex = 0.5, pch = 19) # }
Run the code above in your browser using DataLab