rkoch {alphahull} | R Documentation |
This function generates ramdom points from a uniform distribution on a Koch snowflake.
rkoch(n, side = 3, niter = 5)
n |
Number of observations. |
side |
Side length of the initial equilateral triangle of the Koch snowflake curve. |
niter |
Number of iterations in the development of the snowflake curve. |
A 2-column matrix with the coordinates of generated points.
koch
.
## Not run: unifkoch <- rkoch(2000, side = 1, niter = 3) plot(unifkoch, asp = TRUE) ## End(Not run)