ikernel | R Documentation |
This function wraps existing built-in routines to construct a covariance
matrix for two input matrices based on data type, covariance type, and distance type. The constructed
covariance matrix can be directly used for GaSP fitting and and prediction for spatial
data, spatio-temporal data, and computer experiments. This function explicitly takes inputs as arguments.
The prefix “i" in ikernel
standards for “input".
ikernel(input1, input2, range, tail, nu, covmodel, dtype = "Euclidean")
input1 |
a matrix of input locations |
input2 |
a matrix of input locations |
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.
|
dtype |
a string indicating distance type: Euclidean, GCD, where the latter indicates great circle distance. |
a correlation matrix
Pulong Ma mpulong@gmail.com
CH
, matern
, kernel
, GPBayes-package, GaSP
input = seq(0,1,length=10)
cormat = ikernel(input,input,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.