Learn R Programming

MetricGraph (version 1.4.1)

exp_covariance: Exponential covariance function

Description

Evaluates the exponential covariance function $$C(h) = \sigma^2 \exp\{-kappa h\}$$

Usage

exp_covariance(h, theta)

Value

A vector with the values of the covariance function.

Arguments

h

Distances to evaluate the covariance function at.

theta

A vector c(sigma, kappa), where sigma is the standard deviation and kappa is a range-like parameter.