In this short vignette, we illustrate the family of spatial
covariance functions implemented in this package. Note that, all of them
are based on the assumptions of stationarity and isotropy of the
underlying Gaussian random field (GRF). Also, the implementations (and
definitions) are based on the families of spatial correlation
functions presented in Diggle and Ribeiro
(2007). The implementations make use of the
RcppArmadillo
(Eddelbuettel and
Sanderson 2014) package and the STL library algorithms (C++ 11)1.
The first spatial covariance family implemented is the so-called Matérn Covariance function, which is defined as Where is the distance between two points, is a variance parameter, is the scale parameter that controls the reach of the spatial dependence, and is a shape parameter that controls the smoothness of the process. The function is the -order Modified Bessel function of Second-Kind. There are special cases of the Matérn family implemented on the package, when setting to , , , or the expression simplifies. The first and the last cases yield to the Exponential and Gaussian family, respectively.
The second spatial covariance family implemented is the Powered Exponential Covariance function, it is defined as where is the distance between two points, , , and analogous to the Matérn function.
The penultimate option is the Gaussian family of covariance functions. The expression associated with this family is written as again, the parameters are analogous to what have defined before in this vignette.
Lastly, we have implemented the Spherical family of covariance functions, defined as where, again, is a variance parameter, while is a parameter with the same magnitude as the distances on which the function is being evaluated at and controls the speed of decay of the spatial covariances as we increase the distance between two points.