rlbmat: Block Uniform Logical Matrix Deviates

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/proximus.r

Description

Generate a uniform logical matrix deviate with a possibly overlapping block structure.

Usage

1
2
rlbmat(npat = 4, rows = 20, cols = 12, over = 4, noise = 0.01,
       prob = 0.8, perfect = FALSE)

Arguments

npat

number of patterns.

rows

number of rows per pattern.

cols

number of columns per pattern.

over

number of additional columns per pattern that overlap.

noise

the probability of observing a one in the background (non-pattern) matrix.

prob

the probability of observing TRUE in a pattern.

perfect

option for overlap of the first and the last pattern.

Details

Implements a test case for proximus.

Value

A logical matrix

Author(s)

Christian Buchta

See Also

lmplot and clmplot for plotting a logical matrix

Examples

1
2
x <- rlbmat()
lmplot(x)

cba documentation built on May 2, 2019, 1:39 p.m.

Related to rlbmat in cba...