powered by
matern.covariance evaluates the Matern covariance function $$C(h) = \frac{\sigma^2}{2^{\nu-1}\Gamma(\nu)}(\kappa h)^\nu K_\nu(\kappa h).$$
matern.covariance
matern.covariance(h, kappa, nu, sigma)
A vector with the values C(h).
Distances to evaluate the covariance function at.
Range parameter.
Shape parameter.
Standard deviation.
x <- seq(from = 0, to = 1, length.out = 101) plot(x, matern.covariance(abs(x - 0.5), kappa = 10, nu = 1 / 5, sigma = 1), type = "l", ylab = "C(h)", xlab = "h" )
Run the code above in your browser using DataLab