Matern Correlation Function
matern_cor.Rd
Computes the Matern correlation function.
Value
A vector of the same length as u
with the values of the Matern correlation function for the given distances, if return_sym_matrix=FALSE
. If return_sym_matrix=TRUE
, a symmetric correlation matrix is returned.
Author
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Claudio Fronterre c.fronterr@lancaster.ac.uk $$\rho(u; \phi; \kappa) = (2^{\kappa-1})^{-1}(u/\phi)^\kappa K_{\kappa}(u/\phi)$$ where \(\phi\) and \(\kappa\) are the scale and smoothness parameters, and \(K_{\kappa}(\cdot)\) denotes the modified Bessel function of the third kind of order \(\kappa\). The parameters \(\phi\) and \(\kappa\) must be positive.