R: Block Uniform Logical Matrix Deviates

rlbmat {cba} | R Documentation

## Block Uniform Logical Matrix Deviates

### Description

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

### Usage

    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

    x <- rlbmat()
    lmplot(x)

[Package cba version 0.2-21 Index]