aacf: Estimate the Areal Autocorrelation Function

Description Usage Arguments Value Examples

View source: R/aacf.R

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

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(raster)

# import raster image
data(normforest)

# calculate aacf img and matrix
aacf_out <- aacf(normforest)

# plot resulting aacf image
plot(aacf_out)

geodiv documentation built on Sept. 5, 2021, 5:26 p.m.