aacf {geodiv} | R Documentation |
Estimate the Areal Autocorrelation Function
Description
Calculates the areal autocorrelation function (AACF) as the
inverse of the Fourier power spectrum. aacf(x)
returns
the AACF in both matrix and raster format.
Usage
aacf(x)
Arguments
x |
An n x n raster or matrix. |
Value
A raster or matrix representation of the AACF. Both raster and matrix values are normalized so that the maximum is equal to 1.
Examples
# import raster image
data(normforest)
normforest <- terra::unwrap(normforest)
# calculate aacf img and matrix
aacf_out <- aacf(normforest)
# plot resulting aacf image
terra::plot(aacf_out)
[Package geodiv version 1.1.0 Index]