Last chance! 50% off unlimited learning
Sale ends in
data("nn32")
NNmat
, showing the neighbours of cells on a 64 by 64 grid
in nn64
, a 128 by 128 grid in nn128
, and 256 in nn256
.data("nn32")
dim(nn32)
dim(nn64)
dim(nn128)
x = 50
y=31
matrix(nn128[,128*(y-1)+x], 128, 128)[ x+seq(-4,4),y+seq(-4, 4)]
length(nn128@x)
Run the code above in your browser using DataLab