50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

SuperGauss (version 1.0.2)

matern.acf: Matern autocorrelation function.

Description

Matern autocorrelation function.

Usage

matern.acf(tseq, lambda, nu)

Arguments

tseq

Vector of time points at which the autocorrelation is to be calculated.

lambda

Timescale parameter.

nu

Smoothness parameter.

Value

An autocorrelation vector of length N.

Details

The Matern autocorrelation is given by $$ \mathrm{\scriptsize ACF}(t) = \frac{2^{1-\nu}}{\Gamma(\nu)} \left(\sqrt{2\nu}\frac{t}{\lambda}\right)^\nu K_\nu\left(\sqrt{2\nu} \frac{t}{\lambda}\right), $$ where \(K_\nu(x)\) is the modified Bessel function of second kind.

Examples

Run this code
# NOT RUN {
matern.acf(tseq = 1:10, lambda = 1, nu = 3/2)
# }

Run the code above in your browser using DataLab