ball {CEC}R Documentation

Ball

Description

Generates points that form a ball with uniform density.

Usage

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

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

[Package CEC version 0.10.2 Index]