matrixManipulation | R Documentation |
Functions to find the neighbouring values of matrix cells. Used by Cyclic Cellular Automata.
shiftMatrix(input, xshift = 0, yshift = 0) neighbourhood(input, type = "VN", range = 1)
input |
a matrix. |
xshift, yshift |
amount to shift the matrix |
type |
"N","VN" or "M". |
range |
numeric. The size of the neighbourhood |
shiftMatrix returns a matrix and neighbourhood returns a array.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.