circ_mask: Create a logical circular mask spanning the full extent of an...

View source: R/utils.R

circ_maskR Documentation

Create a logical circular mask spanning the full extent of an n x n matrix.

Description

Create a logical circular mask spanning the full extent of an n x n matrix.

Usage

circ_mask(d, n, offset = 1)

Arguments

d

diameter of the mask.

n

number of matrix rows and columns.

offset

offset the mask centre in matrix dimension units.

Value

logical n x n mask matrix.


spant documentation built on Sept. 11, 2024, 9:13 p.m.