Learn R Programming

geodiv (version 1.1.0)

aacf: 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)

Value

A raster or matrix representation of the AACF. Both raster and matrix values are normalized so that the maximum is equal to 1.

Arguments

x

An n x n raster or matrix.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab