powered by
Creates a matrix of dim-dimensional points that form a "mouse-like" set with uniform density.
dim
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)
Number of points to generate.
Radius of mouse head.
Radius of mouse left ear.
Radius of mouse right ear.
Distance between the center of the head and the center the left ear.
Distance between the center of the head and the center the right ear.
Dimension of points.
Matrix of points with n rows and dim cols.
n
ball
# 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