algo9: Generate autocorrelated data

Description Usage Arguments Details Value References Examples

Description

algo9 generates a valued raster with a specified degree of autocorrelation.

Usage

1
algo9(x, mori, tol = 1/100, maxIter = 10000, print_out = TRUE)

Arguments

x

an object of class Raster or a numeric vector depicting the dimensions of a new raster.

mori

a numeric scalar indicating the desired degree of autocorrelation. Autocorrelation is measured using Moran's I.

tol

numeric indicating tolerance for convergence.

maxIter

numeric indicating the maximum number of observations.

print_out

logical indicating whether or not to print the iteration number. The default is TRUE.

Details

Implements the algorithm outlined by Goodchild (1980).

Value

algo9 returns a Raster class object representing a randomly generated surface with a specificed degree of autocorrelation.

References

Goodchild, Michael. 1980. "Algorithm 9: Simulation of autocorrelation for aggregate data" Environment and Planning A 12: 1073-1081.

Examples

1
algo9(x = c(50, 50), mori = .3)

aslez/maup documentation built on May 10, 2019, 2:04 p.m.