ball {CEC} | R Documentation |
Generates points that form a ball with uniform density.
ball(n, r, dim)
n |
Number of points to generate. |
r |
Radius of the ball. |
dim |
Dimension of the points. |
Matrix of points with n
rows and dim
cols.
M = ball(4000, 0.9) plot(M, cex = 0.5, pch = 19)