make_01tiles: Generates a random 0-1 matrix with n rows and m columns, and...

Description Usage Arguments Value

Description

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.

Usage

1
make_01tiles(n = 50, m = 100, k = 5, p = 0.8, l = 20)

Arguments

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.

Value

A binary data matrix with k segments.


bwrc/semigeom-r documentation built on May 13, 2019, 9:20 a.m.