This function is a wrapper around lisa.nc to calculate spatial autocorrelation of a spectral map.
spatial_ac(x, neigh = 2, colname = "spatial_ac", ...)
x | a hyperSpec object. |
---|---|
neigh | neighborhood size as defined in lisa.nc. |
colname | name of the data column to be added to |
... | additional arguments handed further to lisa.nc. |
a hyperSpec object such as given for x
with an additional
column in x@data
.