mouseset {CEC} | R Documentation |
Creates a matrix of dim
-dimensional points that form a "mouse-like" set with uniform density.
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)
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. |
Matrix of points with n
rows and dim
cols.
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)