View source: R/fractals.R View source: R/fractals.R
boxcount | R Documentation |
Count the number of boxes needed to cover all the 1s in a matrix of 0s and 1s.
Count the number of boxes needed to cover all the 1s in a matrix of 0s and 1s.
boxcount(mat, size) boxcount(mat, size)
mat |
a square square matrix of 0s and 1s, whose size should be a power of 2. |
size |
the size (pixels per side) of the boxes, whose size should be a power of 2. |
an integer
an integer
g <- sierpinski(n=5) boxcount(mat=g,size=16) g <- sierpinski(n=5) boxcount(mat=g,size=16)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.