ball: Ball

Description Usage Arguments Value See Also Examples

View source: R/utils.R

Description

Generates points that form a ball with uniform density.

Usage

1
ball(n, r, dim)

Arguments

n

Number of points to generate.

r

Radius of the ball.

dim

Dimension of the points.

Value

Matrix of points with n rows and dim cols.

See Also

mouseset

Examples

1
2
M = ball(4000, 0.9)
plot(M, cex = 0.5, pch = 19)

CEC documentation built on Sept. 21, 2021, 5:07 p.m.