A function to return the covariance from a model based on the randomFields covariance functions. Not intended for general use.
getcov(u, sigma, phi, model, pars)
this is just a wrapper for CovarianceFct
distance
variance parameter
scale parameter
correlation type, see ?CovarianceFct
vector of additional parameters for certain classes of covariance function (eg Matern), these must be supplied in the order given in ?CovarianceFct and are not estimated