neigh2D {lgcp} | R Documentation |
A function to compute the neighbours of a cell on a toral grid
neigh2D(i, j, ns, M, N)
i |
cell index i |
j |
cell index j |
ns |
number of neighbours either side |
M |
size of grid in x direction |
N |
size of grid in y direction |
the cell indices of the neighbours