powered by
This function generates ramdom points from a uniform distribution on a Koch snowflake.
rkoch(n, side = 3, niter = 5)
Number of observations.
Side length of the initial equilateral triangle of the Koch snowflake curve.
Number of iterations in the development of the snowflake curve.
A 2-column matrix with the coordinates of generated points.
koch.
koch
# NOT RUN { unifkoch <- rkoch(2000, side = 1, niter = 3) plot(unifkoch, asp = TRUE) # }
Run the code above in your browser using DataLab