periodic_cov: Periodic covariance function

View source: R/Math-Functions.R

periodic_covR Documentation

Periodic covariance function

Description

Periodic function used to compute the variance-covariance matrix of the fields of the landscape.

Usage

periodic_cov(d, range, phi = 1)

Arguments

d

a numeric object containing pairwise distances between the centroids of the fields

range

range (half-period of oscillations)

phi

amplitude of the oscillations

Details

The periodic covariance is defined by exp(-2 * sin(d*pi/(2*range))^2 / phi^2) . It is used to generate highly fragmented or highly aggregated landscapes.

Value

An object of the same type as d.

See Also

multiN

Examples

periodic_cov(10, range = 5)

landsepi documentation built on July 26, 2023, 5:36 p.m.