nnMean is C++ code for calculating nearest neighbour means in a 2D matrix
nnMean(y, nrows, ncols)
y
NumericVector
nrows
int
ncols
eY