Description Usage Arguments Value
Generates a random 0-1 matrix with n rows and m columns, and k randomly placed "tiles". Every planted tile has a single subset of l rows that span l consecutive columns. The matrix is filled with zeros, 1s occur in tiles with probability p.
1 | make_01tiles(n = 50, m = 100, k = 5, p = 0.8, l = 20)
|
n |
Number of rows. |
m |
Number of columns. |
k |
Number of randomly planted tiles. |
p |
Probability of 1s in the segments. |
l |
Span of tiles. |
A binary data matrix with k segments.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.