aacf: Estimate the Areal Autocorrelation Function

View source: R/aacf.R

aacfR 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)

geodiv documentation built on Oct. 6, 2023, 1:07 a.m.