matern_cor {RiskMap} | R Documentation |
Matern Correlation Function
Description
Computes the Matern correlation function.
Usage
matern_cor(u, phi, kappa, return_sym_matrix = FALSE)
Arguments
u |
A vector of distances between pairs of data locations. |
phi |
The scale parameter |
kappa |
The smoothness parameter |
return_sym_matrix |
A logical value indicating whether to return a symmetric correlation matrix. Defaults to |
Details
The Matern correlation function is defined as
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(s)
Emanuele Giorgi e.giorgi@lancaster.ac.uk
Claudio Fronterre c.fronterr@lancaster.ac.uk
where and
are the scale and smoothness parameters, and
denotes the modified Bessel function of the third kind of order
. The parameters
and
must be positive.
[Package RiskMap version 0.1.0 Index]