matrixManipulation: matrixManipulation

matrixManipulationR Documentation

matrixManipulation

Description

Functions to find the neighbouring values of matrix cells. Used by Cyclic Cellular Automata.

Usage

shiftMatrix(input, xshift = 0, yshift = 0)

neighbourhood(input, type = "VN", range = 1)

Arguments

input

a matrix.

xshift, yshift

amount to shift the matrix

type

"N","VN" or "M".

range

numeric. The size of the neighbourhood

Value

shiftMatrix returns a matrix and neighbourhood returns a array.


R-graphic-design/RGD documentation built on Jan. 2, 2023, 10:30 p.m.