Learn R Programming

CEC (version 0.10.3)

mouseset: Mouse set

Description

Creates a matrix of dim-dimensional points that form a "mouse-like" set with uniform density.

Usage

mouseset(n = 4000, r.head = 2, r.left.ear = 1.1, r.right.ear = 1.1, left.ear.dist = 2.5,
right.ear.dist = 2.5, dim = 2)

Arguments

n

Number of points to generate.

r.head

Radius of mouse head.

r.left.ear

Radius of mouse left ear.

r.right.ear

Radius of mouse right ear.

left.ear.dist

Distance between the center of the head and the center the left ear.

right.ear.dist

Distance between the center of the head and the center the right ear.

dim

Dimension of points.

Value

Matrix of points with n rows and dim cols.

See Also

ball

Examples

Run this code
# NOT RUN {
M = mouseset(n=7000, r.head=2, r.left.ear=1.1, r.right.ear=1.1, left.ear.dist=2.5, 
right.ear.dist=2.5, dim=2)
plot(M, cex = 0.5, pch = 19)
# }

Run the code above in your browser using DataLab