neigh2D: neigh2D function

View source: R/lgcp-INLA.R

neigh2DR Documentation

neigh2D function

Description

A function to compute the neighbours of a cell on a toral grid

Usage

neigh2D(i, j, ns, M, N)

Arguments

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

Value

the cell indices of the neighbours


lgcp documentation built on Oct. 3, 2023, 5:08 p.m.