kernel | R Documentation |
This function wraps existing built-in routines to construct a covariance matrix based on data type, covariance type, and distance type with distances as inputs. The constructed covariance matrix can be directly used for GaSP fitting and and prediction for spatial data, spatio-temporal data, and computer experiments.
kernel(d, range, tail, nu, covmodel)
d |
a matrix or a list of distances |
range |
a vector of range parameters, which could be a scalar. |
tail |
a vector of tail decay parameters, which could be a scalar. |
nu |
a vector of smoothness parameters, which could be a scalar. |
covmodel |
a list of two strings: family, form, where family indicates the family of covariance functions including the Confluent Hypergeometric class, the Matérn class, the Cauchy class, the powered-exponential class. form indicates the specific form of covariance structures including the isotropic form, tensor form, automatic relevance determination form.
|
a correlation matrix
Pulong Ma mpulong@gmail.com
CH
, matern
, ikernel
, GPBayes-package, GaSP
input = seq(0,1,length=10)
d = distance(input,input,type="isotropic",dtype="Euclidean")
cormat = kernel(d,range=0.5,tail=0.2,nu=2.5,
covmodel=list(family="CH",form="isotropic"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.